Unit-1_SummaryNotes
Unit-1_SummaryNotes
2. Creating Algorithms
Selection: to draw in a flowchart, we’ve to use diamond and arrow to indicate/ describe a whole process.
Iteration: to draw in a flowchart, we’ve to use round rectangle, diamond, skew and arrow to indicate the process.
3. Sorting and Searching Algorithms
There are many different sorting algorithms but we’ve learnt 2 types sorting algorithm. These are – Bubble sort and Merge Sort.
Bubble Sort: Page 16
Merge Sort: It will break out the list into the smaller sub-list and then it will break down that sub-list again until we reach the size of list is
one. After that it will sort and combined it into the big data/ complete list.
Efficiency of Sorting Algorithm: it will decide the number of times it take to sort with bigger data.
There are 3 types of searching algorithms. These are Binary, Linear and Hash.
Linear: Page 20
Binary: It will find the median of the list. If the median is larger than the search key, then it will go left of the list, otherwise it will go the right
side of the list. This process will be repeated again and again until it found the search key or it searched/checked every item in the list.
Efficiency of Searching Algorithm: it will decide it with best and worst scenarios. For example, if the search key that we want to find is early
part of the list then, Linear search would be more suitable to use. But if the search key is later part of the list then, Binary search would be
more suitable.
4. Decomposition and Abstraction
Computational Thinking: subject vocab
Decomposition: It will break down the process into smaller part of it which is more manageable.
Abstraction: It will remove or hide unnecessary details from our program to focus more on the logic and efficiency of it.
Level of Abstraction: The higher the level of abstraction, less details are required.
When we break out the bigger problem into smaller problems and we provide solution of each of the problem. We called that solution as a
subprogram.