Fundamental terminology in coding (programming) part 1
Coding not only doesn’t lend itself to someone just physically showing you to “do this” or “do that” but most of the terms that come with it is new terminology, and are words never seen before—or words that have been seen, but now have different meanings.
Variable names are usually alphanumeric, that is, they contain a-z and 0-9.
When coding across programming languages, there are many common data types that software developers can use.
These data types can determine how much memory a computer needs to process the code, how long it might take to load certain features and what functions a program might perform.
What is a data type?
A data type is an attribute of a piece of data that tells a device how the end-user might interact with the data.
You can also think of them as categorizations that different coding programs might combine in order to execute certain functions.
Most programming languages including C++ and Java use the same basic data types
3.Algorithm
In computer programming terms, an algorithm is a set of well-defined instructions to solve a particular problem. It takes a set of input(s) and produces the desired output.
Real-life examples that define the use of algorithms:
Driverless cars are considered to be the future of human transport. They rely on object classification algorithms that help cars to detect objects, interpret situations and make decisions.
Algorithms can do this because they spend hundreds of thousands of hours learning through navigating on roads.
An algorithm to add two numbers:
-
Take two number inputs
-
Add
-
numbers using the + operator
-
Display the result
Complexity of Algorithm
- Time Complexity: Time taken by the algorithm to solve the problem. It is measured by calculating the iteration of loops, number of comparisons etc.
- Space Complexity: Space taken by the algorithm to solve the problem. It includes space used by necessary input variables and any extra space (excluding the space taken by inputs) that is used by the algorithm.
-
- Analysis of Algorithms
worst-case analysis
average case
Best Case
Asymptotic notation:
Asymptotic Notations:
Asymptotic Notation is a way of comparing function that ignores constant factors and small input sizes. Three notations are used to calculate the running time complexity of an algorithm:
Asymptotic Notations types:
.jpeg)
1. Big-O notation: Big-O is the formal method of expressing the upper bound of an algorithm's running time. It is the measure of the longest amount of time.
2. O mega () Notation: O mega notation represents the lower bound of the running time of an algorithm.
3.Theta Notation Θ-notation: represents the upper and the lower bound of the running time of an algorithm.
4.Flowchart
The Flowchart is the most widely used graphical representation of an algorithm and procedural design workflows.
we see in detail flowchart and other Fundamentals terminology in coding (programming) part 2.(coming soon)
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
, nice 🙂
ReplyDeleteThank you
DeleteAny doubt?
Delete