2.1 Algorithms

Descrição

Mapa Mental sobre 2.1 Algorithms, criado por Jack Rowley em 01-01-2019.
Jack Rowley
Mapa Mental por Jack Rowley, atualizado more than 1 year ago
Jack Rowley
Criado por Jack Rowley quase 8 anos atrás
30
0

Resumo de Recurso

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

                                                              Semelhante

                                                              Computer Science
                                                              Alex Rollin