Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Exam (elaborations) wgu c949

Puntuación
-
Vendido
-
Páginas
7
Grado
A+
Subido en
17-10-2024
Escrito en
2024/2025

WGU C949 Data Types STUDY GUIDE and answers ArrayA data structure that stores an ordered list of items, with each item is directly accessible by a positional index. Linked ListA data structure that stores ordered list of items in nodes, where each node stores data and has a pointer to the next node. Bianary Search TreeA data structure in which each node stores data and has up to two children, known as a left child and a right child. Hash TableA data structure that stores unordered items by mapping (or hashing) each item to a location in an array (or vector). Abstract Data Type (ADT)A data type described by predefined user operations, such as "insert data at rear," without indicating how each operation is implemented. ListAn ADT for holding ordered data. Dups ok Sequence type: A mutable container with ordered elements. Underlying data structures: Array, linked list Array in Javageneric class that supports different data types. declared as follows, where T is the data type. TupleSequence type: An immutable container with ordered elements. StackAn ADT in which items are only inserted on or removed from the top of a

Mostrar más Leer menos
Institución
Wgu C949
Grado
Wgu c949

Vista previa del contenido

WGU C949 Data Types STUDY GUIDE
and answers
Array✔✔A data structure that stores an ordered list of items, with each item is
directly accessible by a positional index.

Linked List✔✔A data structure that stores ordered list of items in nodes, where each
node stores data and has a pointer to the next node.

Bianary Search Tree✔✔A data structure in which each node stores data and has up
to two children, known as a left child and a right child.

Hash Table✔✔A data structure that stores unordered items by mapping (or hashing)
each item to a location in an array (or vector).

Abstract Data Type (ADT)✔✔A data type described by predefined user operations,
such as "insert data at rear," without indicating how each operation is implemented.

List✔✔An ADT for holding ordered data. Dups ok

Sequence type: A mutable container with ordered elements.

Underlying data structures: Array, linked list

Array in Java✔✔generic class that supports different data types. declared as follows,
where T is the data type.

Tuple✔✔Sequence type: An immutable container with ordered elements.

Stack✔✔An ADT in which items are only inserted on or removed from the top of a
stack.
*Last-in First-Out

Underlying data structures: Linked list

Push(stack, x), pop(stack), peek(stack), IsEmpty(stack), GetLength(stack)

*Pop & peek should not be used on a empty stack.

Stack operations✔✔Example starting with stack: 99, 77 (top is 99).

Push(stack, x)
Inserts x on top of stack
Push(stack, 44). Stack: 44, 99, 77

Pop(stack)
Returns and removes item at top of stack
Pop(stack) returns: 99. Stack: 77

, Peek(stack)
Returns but does not remove item at top of stack
Peek(stack) returns 99. Stack still: 99, 77

IsEmpty(stack)
Returns true if stack has no items
IsEmpty(stack) returns false.

GetLength(stack)
Returns the number of items in the stack
GetLength(stack) returns 2.

Queue✔✔An ADT in which items are inserted at the end of the queue and removed
from the front of the queue.

*first-in first-out ADT.

Underlying data structures: Linked list, Array, Vector

The Queue class' push() method uses the LinkedList append() method to insert
elements in a queue.

Both the Stack and Queue pop() methods operate exactly the same by removing the
head element and returning the removed element.

Linked List✔✔A linear data structure, much like an array, that consists of nodes,
where each node contains data as well as a link to the next node, but that does not
use contiguous memory.
Head and tail node

The LinkedList class implements the list data structure and contains two data
members, head and tail, which are assigned to nodes once the list is populated.
Initially the list has no nodes, so both data members are initially assigned with None.

If the node has no next node, the next data member is assigned with None, the
Python term signifying the absence of a value.

Deque✔✔Short for double-ended queue- an ADT in which items can be inserted and
removed at both the front and back.

Underlying data structures: Linked list

Bag✔✔An ADT for storing items in which the order does not matter and duplicate
items are allowed.

Underlying data structures: Linked list, Array

Set✔✔An ADT for a collection of distinct items. (no dups!)

Escuela, estudio y materia

Institución
Wgu c949
Grado
Wgu c949

Información del documento

Subido en
17 de octubre de 2024
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$8.49
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
ExamZen

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
ExamZen Liberty University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
16
Miembro desde
1 año
Número de seguidores
3
Documentos
539
Última venta
1 mes hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes