¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Stacks & Queues

Virginie Gagné Computer Science Inglés 10 fichas

Stacks & Queues

Fichas del conjunto (10)

  1. 1What's an ADTAn ADT defines a data type by the values that data can have and operations on the data (eg Lists...)
  2. 2Define a stackadt w two operations: push and pop
  3. 3Data structures for a stack, how to use and whyarray lists: addLast and removeLast
    singly linked lists: from the front
    doubly l l : doesn't matter
  4. 4Stack overflow vs underflowfull then try to push,
    empty then try to pop
  5. 5Whats the call stack.
  6. 6alg for parenthesesalg for parentheses
  7. 7define a queueFirst come first served policy.
    Two basic operations: enqueue(e) and dequeue()
  8. 8data structures for queuessingly l l : enqueue and dequeue with addlast and removefirst
    doubly l l: works too
    array list: enque is addlast and dequeue is removefirst but dequeue inefficient
    circular array
  9. 9tail formula for circular arraytail = (head+size-1)mod length
  10. 10alg for circular arrayalg for circular array

Información

Descripción
Computer Science Fichas sobre Stacks & Queues, creado por Virginie Gagné el 15/04/2022.
Creado por
Virginie Gagné
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?