Mapa mental
2.1 Algorithms josh merc
Contenido del mapa
2.1 Algorithms josh merc
Computational Thinking
- Allows us to take a complex problem, understand what the problem is, and then develop possible solutions
- The use of a computer to solve problems
- 4 Key Areas:
- Decomposition
- Breaking down a complex problem or system into smaller, more manageable parts
- Abstraction
- Gets rid of the irrelevant stuff in the program
- Allows to only focus on the important information
- Pattern Recognition
- Looking for similarities among and within problems
- Algorithms
- Developing a step-by-step solution to solve the problem
- Algorithms must be detailed & easy to understand so it can be passed onto someone else and have them code it
- Decomposition
Binary Search
- List must be in order
- Middle Value is taken
- Search is stopped if it is the value is the one you're looking for
- If middle value is larger than the desired one: Take the values to the left of the middle value
- Then repeat with the new list
- If middle value is smaller than the desired one: Take the values to the right of the middle value
LInear Search
- List does not have to be in order
- First value of list is checked
- Search is stopped if it is the value is the one you're looking for
- If not desired value: Check next value on the list
- Process is repeated until desired value is attained
Bubble Sort
- A method for sorting out unordered lists
- Take the first and second elements from the list and compare them
- If element 1 > element 2: Swap
- Else: Leave it
- Move along to the next pair of elements (element 2 & 3) and repeat
- Repeat until you have moved through the whole list and not made any changes
- Move along to the next pair of elements (element 2 & 3) and repeat
- Else: Leave it
- If element 1 > element 2: Swap
- Worst case scenario: n*n (n = number of elements) Average number of swaps: n^2
Flow Charts
- arrow
- Directional Flow
- oval
- An End or a Beginning
- rectangle
- A Step in the Flowcharting Process
- diamond
- Call for a Decision
- arrow
Información
- Descripción
- Mapa Mental sobre 2.1 Algorithms josh merc, creado por josh mercurius el 10/01/2019.
- Creado por
- josh mercurius
- Visitas
- 3
- Historial
-
- Creado por 2402 2003 · 17 dic 2018
- Copiado por josh mercurius · 10 ene 2019
- Valoración