Linked Lists WedW15

Beschreibung

A quick mind map summarizing the ideas associated with linked lists that is progressively adapted as the course continues.
Madeline Harlow
Mindmap von Madeline Harlow, aktualisiert more than 1 year ago
Madeline Harlow
Erstellt von Madeline Harlow vor etwa 9 Jahre
410
0

Zusammenfassung der Ressource

Linked Lists WedW15
  1. Composed of nodes
    1. Nodes contain data
      1. Nodes contain pointer to nxt node
        1. typedef struct node{ int data; struct node * next;}NODE;
          1. Saved in the heap
            1. NODE* p = malloc(sizeof(NODE));
              1. free(p);
                1. assert(p!=NULL);
              2. add nodes
                1. add to front
                  1. newNode->next= head; head = newNode;
                  2. add to back
                    1. add to middle
                    2. delete nodes
                      1. delete front
                        1. delete middle
                          1. delete last
                            1. delete all
                            2. traverse a list
                              1. modify/set values
                                1. append (see add node)
                                  1. counting nodes (length)
                                    1. search for value
                                      1. sum, average, math
                                        1. # of occurances
                                        2. Always starts with head
                                          1. head == NULL the list is empty
                                            1. head != NULL list is occupied
                                            2. Always end with NULL
                                              1. if(p->next == NULL) p is point to the last node (p is tail)
                                                1. found the end of the list (see append)
                                                2. if(p == NULL)
                                                  1. traverse through whole list
                                                Zusammenfassung anzeigen Zusammenfassung ausblenden

                                                ähnlicher Inhalt

                                                Programming in C MindMap
                                                Tejas Rao
                                                MIND MAP 1
                                                vsolakis
                                                C programming # 001
                                                satya.panda
                                                Historische Fakten des 20. Jahrhunderts
                                                AntonS
                                                Kopfrechnen: Grundrechenarten, 56 Aufgaben
                                                Stefan Kurtenbach
                                                Deutsch Einstufungstest Niveau A2.2
                                                SprachschuleAktiv
                                                Euro-FH // Zusammenfassung PEPS1
                                                Robert Paul
                                                Vetie - Histo & Embryo II 2017
                                                Fioras Hu
                                                Vetie Pharma Datum unbekannt Karteikarten
                                                Alina Stumpf
                                                Vetie Chirurgie 2018 Zweitklausur
                                                Johanna Müller
                                                MS-1.3: Folienpaket 5
                                                Stephanie Hendricks