Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Linked Lists

Beschreibung

Mindmap am Linked Lists, erstellt von Madeline Harlow am 03/11/2014.
Madeline Harlow
Mindmap von Madeline Harlow, aktualisiert more than 1 year ago
Madeline Harlow
Erstellt von Madeline Harlow vor mehr als 10 Jahre
45
1
1 2 3 4 5 (0)

Zusammenfassung der Ressource

Linked Lists
  1. Variable size
    1. Change in real time (on run time)
    2. composed of nodes
      1. structs
        1. contains the data types you want
          1. one element is a pointer to the next node
        2. Saved in the heap
          1. dynamic memory
            1. malloc
              1. each node individually
                1. Assert
                  1. sizeof
                  2. free
                    1. Each node individually (loop)
                2. ALWAYS started by the head pointer
                  1. The first thing you ALWAYS do is declare and initialize the head pointer,
                  2. Singly linked
                    1. list pointing in one direction
                      1. once you go to the next node, you can't get back, UNLESS you keep track of the previous node
                        1. have a 'previous' pointer
                    2. End of the list is represented by NULL
                      1. Always begin by initializing the next pointers to NULL
                      2. 2 'types' of lists
                        1. empty
                          1. head == NULL
                          2. full or occupied
                            1. head == address to a node
                          3. 3 conditions to check
                            1. At the front
                              1. At the back
                                1. At the middle
                                2. List Traversal
                                  1. For loop
                                    1. Stop when reach the next=null
                                  Zusammenfassung anzeigen Zusammenfassung ausblenden

                                  0 Kommentare

                                  There are no comments, be the first and leave one below:

                                  ähnlicher Inhalt

                                  Linked Lists WedW15
                                  Neyavanan v
                                  Linked Lists WedW15
                                  Neyavanan v
                                  Linked Lists WedW15
                                  Neyavanan v
                                  Linked Lists WedW15
                                  Kunall Banerjee
                                  STEP 1
                                  astrid.
                                  Eriksons Modell psychosexueller und psychosozialer Entwicklung im Kindes-, Jugend- und Erwachsenenalter
                                  Lena S.
                                  U6 Bildbearbeitung
                                  Lena A.
                                  GPSY ALPS
                                  meike höfliger
                                  FOLO (PuKW STEOP B)
                                  Lara Gundacker
                                  Vetie Para Morphologie Helminthen
                                  Kristin E