2.1 Algorithms

Description

Mind Map on 2.1 Algorithms, created by Jack Rowley on 01/01/2019.
Jack Rowley
Mind Map by Jack Rowley, updated more than 1 year ago
Jack Rowley
Created by Jack Rowley almost 8 years ago
30
0

Resource summary

2.1 Algorithms
  1. computational thinking
    1. Abstraction
      1. getting rid of irrelevant information and focusing on important information
        1. using symbols and variables to represent "real world" problems
        2. decomposition
          1. big problem ==> smaller problems
            1. easier to solve
              1. independent of others
              2. problems can be decomposed in different methods
              3. Algorithmic thinking
                1. identifying steps in solving problems
              4. linear search
                1. doesn't need to be in order
                  1. goes through one by one
                    1. IF correct, stop
                      1. ELSE carry on to next value
                        1. simpler to write
                        2. binary search
                          1. list needs to be in order
                            1. take middle value
                              1. compare to required value
                                1. IF correct then stop
                                  1. ELSEIF it is larger, take values on the left
                                    1. IF smaller, take values to the right
                                      1. longer, more complex
                                      2. sorts
                                        1. bubble
                                          1. goes through list repeatedly swapping elements until in correct order
                                          2. merge
                                            1. list is split in two and combined two at a time
                                            2. insertion
                                              1. each item is taken in turn compared to an ordered list. it is placed in correct position
                                            3. flowchart
                                              1. input / output data
                                                1. processes
                                                  1. decisions
                                                    1. shapes rep functions
                                                      1. lines show flow control
                                                      2. pseudocode
                                                        1. 'fake' code
                                                          1. partway between sentences and coding
                                                          2. dry run
                                                            1. walking through and running each step manually
                                                              1. trace table
                                                                1. table that follows the values of variables to check for accuracy
                                                              Show full summary Hide full summary

                                                              Similar

                                                              Computer Science
                                                              Alex Rollin