Data Structures
95 cards · 🇺🇸 English
Arrays, linked lists, trees, graphs, hash tables and their core operations.
Study all 95 cards for free
Flashcards, quizzes, pixel-art games and a daily review that remembers for you.
Try the first 10 cards
1 / 10Data structure
Tap the card for the answer · swipe right if you knew it, left if not
Already have an account? Sign in
Cards
- 1Data structureA data organization and storage format chosen for efficient access to data
- 2Abstract Data Type (ADT)A data type defined indirectly by the operations that may be performed on it and their mathematical properties
- 3How does an ADT relate to a data structure?The ADT defines the logical form; the data structure implements the physical form
- 4Why are efficient data structures important?They are key to designing efficient algorithms and managing large amounts of data
- 5ArrayA collection of elements in a specific order, typically all of the same type, accessed by integer indices
- 6How are array elements typically stored in memory?In contiguous memory locations
- 7Advantage of arraysFast random access and modification (constant time with index)
- 8Can arrays be resizable?Yes, they can be fixed-length or resizable (dynamic)
- 9Linked listA linear collection where each node contains a value and a pointer to the next node
- 10Principal advantage of a linked list over an arrayValues can be efficiently inserted and removed without relocating the rest of the list
- 11Disadvantage of linked listsRandom access to an element is slower than in arrays (requires traversal)
- 12Record (or struct)An aggregate data structure containing other values in fixed number and sequence, typically indexed by names
- 13Elements of a record calledFields or members
- 14Hash tableA data structure that provides fast retrieval of values based on keys using a hashing function
- 15Average time complexity for access in a hash tableO(1) - constant time
- 16Hash collisionsWhen two different keys map to the same index in a hash table
- 17Two techniques to handle hash collisionsChaining and open addressing
- 18GraphA collection of nodes (vertices) connected by edges, representing relationships
- 19Graphs used to modelSocial networks, computer networks, transportation networks, and relationships between entities
- 20Two types of graphsDirected and undirected
- 21Two main graph traversal algorithmsBreadth-first search (BFS) and depth-first search (DFS)
- 22StackAn abstract data type with push and pop operations following LIFO (Last In, First Out)
- 23Push operationAdds an element to the top of the stack
- 24Pop operationRemoves and returns the topmost element from the stack
- 25What principle does a stack follow?LIFO - Last In, First Out
- 26QueueAn abstract data type with enqueue and dequeue operations following FIFO (First In, First Out)
- 27Enqueue operationAdds an element to the rear of the queue
- 28Dequeue operationRemoves and returns an element from the front of the queue
- 29What principle does a queue follow?FIFO - First In, First Out
- 30TreeA hierarchical data structure with nodes connected by edges, with one root node
And 65 more cards. Study the whole deck free
Articles about this deck
More Programming decks
See all- 🧱
Estructuras de Datos
95 cards · 🇺🇸 English
Arrays, listas enlazadas, árboles, grafos, tablas hash y sus operaciones fundamentales.
- 🏗️
Design Patterns & OOP/SOLID Principles
60 cards · 🇺🇸 English
The Gang of Four design patterns plus object-oriented and SOLID principles.
- ⏱️
Notación Big O
44 cards · 🇺🇸 English
Análisis de la complejidad temporal y espacial de algoritmos y operaciones comunes.
- ✅
Testing: Unit & Integration
40 cards · 🇺🇸 English
Unit testing, integration testing, mocking, and testing best practices.
- 🧱
Datenstrukturen
95 cards · 🇺🇸 English
Arrays, verkettete Listen, Bäume, Graphen, Hash-Tabellen und ihre wichtigsten Operationen.
- ⏱️
Notation Big O
44 cards · 🇺🇸 English
Analyse de la complexité temporelle et spatiale des algorithmes et opérations courantes.
