Chapter 5

Description

Algorithms
Karl Taylor
Mind Map by Karl Taylor, updated more than 1 year ago
Karl Taylor
Created by Karl Taylor over 7 years ago
6
0

Resource summary

Chapter 5
  1. Sorting Algorithms
    1. Bubble Sort
      1. Repeatedly steps through the list to be sorted, compares each pair of items beside each other and swaps them if they are in the wrong order.
      2. Insertion Sort
        1. Works by dividing the list into two parts: sorted and unsorted
          1. Elements are inserted one by one into their correct position in the sorted section
          2. Merge Sort
            1. Quicksort
              1. Steps
                1. 1. Take the first item in the list, make it a list one item big and call it the pivot
                  1. 2. Splits the remainder of the list into two sub-lists: those less than or equal to the pivot and those greater than the pivot
                    1. 3. Recursively apply step 2 until all sub-lists are pivots
                      1. 4. The pivots can now be combined to form a sorted list
                  2. Search Algorithms
                    1. Linear Search
                      1. Methodically searches one location after another until the searched-for value is found
                      2. Binary Search
                        1. Works by dividing the list in two each time until we find the item being searched for
                          1. The list must be in order
                        2. Complexity
                          1. O(x)
                            1. X = worst case complexity of the algorithm
                            2. n = number of data
                              1. Constant complexity
                                1. O(1)
                                  1. Takes the same amount of time to run regardless of the size of a data set
                                2. Linear complexity
                                  1. O(n)
                                    1. Increase at the same rate as the input size increases
                                  2. Polynomial complexity
                                    1. O(n to the power of k) (where k>=0)
                                    2. Exponential complexity
                                      1. O(k to the power on n) (where k>0)
                                      2. Logarithmic complexity
                                        1. O(Log n)
                                      3. Shortest path algorithms
                                        1. Dijkstra's algorithm
                                          1. Finds the shortest path between two points
                                          2. A* search
                                            1. Uses heuristic to find the shortest path between two points
                                          Show full summary Hide full summary

                                          Similar

                                          Computing Hardware - CPU and Memory
                                          ollietablet123
                                          SFDC App Builder 2
                                          Parker Webb-Mitchell
                                          Data Types
                                          Jacob Sedore
                                          Intake7 BIM L1
                                          Stanley Chia
                                          Software Processes
                                          Nurul Aiman Abdu
                                          Design Patterns
                                          Erica Solum
                                          CCNA Answers – CCNA Exam
                                          Abdul Demir
                                          Abstraction
                                          Shannon Anderson-Rush
                                          Spyware
                                          Sam2
                                          HTTPS explained with Carrier Pigeons
                                          Shannon Anderson-Rush
                                          Data Analytics
                                          anelvr