Podcast
Questions and Answers
배열의 요소를 접근하는 시간 복잡도는 무엇입니까?
배열의 요소를 접근하는 시간 복잡도는 무엇입니까?
링크드 리스트의 요소를 중간에 삽입하거나 삭제하는 시간 복잡도는 무엇입니까?
링크드 리스트의 요소를 중간에 삽입하거나 삭제하는 시간 복잡도는 무엇입니까?
스택의 주요 동작은 무엇입니까?
스택의 주요 동작은 무엇입니까?
트리의 유형 중 루트 노드가 두 개의 자식 노드를 가진 트리는 무엇입니까?
트리의 유형 중 루트 노드가 두 개의 자식 노드를 가진 트리는 무엇입니까?
Signup and view all the answers
그래프의 에지가 방향을 가지는 경우를 무엇이라고 합니까?
그래프의 에지가 방향을 가지는 경우를 무엇이라고 합니까?
Signup and view all the answers
큐의 요소를 추출하는 동작은 무엇입니까?
큐의 요소를 추출하는 동작은 무엇입니까?
Signup and view all the answers
Study Notes
Data Structures in Computer Programs
Arrays
- A collection of elements of the same data type stored in contiguous memory locations
- Each element is identified by an index or key
- Operations:
- Accessing an element by its index (constant time complexity)
- Inserting or deleting an element (linear time complexity)
Linked Lists
- A dynamic collection of elements, where each element points to the next element
- Each element is a separate object, and each element points to the next element
- Operations:
- Inserting or deleting an element at the beginning or end (constant time complexity)
- Inserting or deleting an element in the middle (linear time complexity)
Stacks
- A Last-In-First-Out (LIFO) data structure
- Operations:
- Push (add an element to the top)
- Pop (remove the top element)
- Peek (view the top element without removing it)
Queues
- A First-In-First-Out (FIFO) data structure
- Operations:
- Enqueue (add an element to the end)
- Dequeue (remove the front element)
- Peek (view the front element without removing it)
Trees
- A hierarchical data structure with nodes that have a value and zero or more child nodes
- Types:
- Binary Trees: each node has at most two child nodes
- AVL Trees: self-balancing binary search trees
- B-Trees: self-balancing search trees for disk storage
Graphs
- A non-linear data structure with nodes and edges that connect nodes
- Types:
- Directed Graphs: edges have direction
- Undirected Graphs: edges do not have direction
- Weighted Graphs: edges have weights or labels
- Unweighted Graphs: edges do not have weights or labels
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of data structures, including arrays, linked lists, stacks, queues, trees, and graphs, and their operations and types.