GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Linked Lists

Madeline Harlow Englisch

Inhalt der Mindmap

Linked Lists

  1. Variable size

    • Change in real time (on run time)
  2. composed of nodes

    • structs
      • contains the data types you want
      • one element is a pointer to the next node
  3. Saved in the heap

    • dynamic memory
      • malloc
        • each node individually
        • Assert
        • sizeof
      • free
        • Each node individually (loop)
  4. ALWAYS started by the head pointer

    • The first thing you ALWAYS do is declare and initialize the head pointer,
  5. Singly linked

    • list pointing in one direction
      • once you go to the next node, you can't get back, UNLESS you keep track of the previous node
        • have a 'previous' pointer
  6. End of the list is represented by NULL

    • Always begin by initializing the next pointers to NULL
  7. 2 'types' of lists

    • empty
      • head == NULL
    • full or occupied
      • head == address to a node
  8. 3 conditions to check

    • At the front
    • At the back
    • At the middle
  9. List Traversal

    • For loop
      • Stop when reach the next=null

Informationen

Beschreibung
Mindmap am Linked Lists, erstellt von Madeline Harlow am 03/11/2014.
Erstellt von
Madeline Harlow
Aufrufe
54
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck