Basic coding
-
Complexity:
-
The complexity of an algorithm is a function f(n) which measures the time and space used by an algorithm in terms of input size n.
-
The complexity of an algorithm is a way to classify how efficient an algorithm is compared to alternative ones.
-
The focus is on how execution time increases with the data set to be processed.
-
Time complexity:
The time complexity of an algorithm is the amount of time taken by the algorithm to complete its process as a function of its input length n
-
Space complexity:
Whenever a solution to a problem is written some memory is required to complete. For any algorithm memory may be used for the following: –
-
Variable (this includes the constant values, temporary values)
-
Program instruction
-
Execution
-
Auxiliary space
It is an extra space or the temporary space used by the algorithm during its execution
(Space complexity=auxiliary space + input space)
-
While executing, the algorithm uses memory space for three reasons
-
Instruction space
-
Environment stack
-
Dataspace
-
Raptor/flowchart
Diagrammatic or pictorial representation of an algorithm
Raptor is a flowchart-based on programming environment, designed specifically to help students visualize their algorithms and avoid syntactic baggage
-
Symbols in raptor
Raptor has 6 types of symbols, each of which represents a unique kind of instruction.
-
Input symbols allow users to enter data. such data is stored in some variable
-
Output symbol is used to display the value of a variable.
-
Assignment symbols can be used for assigning and processing the values of the variable.
-
Integrated development (IDE):
IDE can be defined as software that gives its users an environment for performing programs
-
Code editor
This feature is a text editor design for writing and editing sources, distinguished from text editors because they enhance or simplify the writing and editing of code
-
Compiler
This tool transforms source code written in a human-readable/writeable language into a form executable by a computer
-
Debugger: This tool is used during testing to help debug the application programs
-
Why do we need IDE?
-
IDE save your time and efforts
-
They are easy to setup
-
They support collaboration
-
IDS can correct syntax, give warnings, and help you write quality code
-
You can also use them to create drives and utilizes
-
Types of IDE
We have a variety of different IDE today depending on how you work and the kind of code are you working on
We have IDE design for
-
Specific language
-
Multi-language
-
Development of mobile /web pages
-
Cloud based IDE