O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Linked Lists

Madeline Harlow Inglês

Conteúdo do mapa

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

Informações

Descrição
Mapa Mental sobre Linked Lists, criado por Madeline Harlow em 03-11-2014.
Criado por
Madeline Harlow
Visualizações
54
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?