LINEAR DATA STRUCTURES

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/53

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:26 PM on 8/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

54 Terms

1
New cards

linear data structure

a data structure where elements are organized sequentially, wherein each element is positioned in a linear order, and traversal typically follows one direction (from start to end).

2
New cards

array

a fixed-length, ordered collection of values of the same type stored in contiguous memory locations. The collection may be ordered in several dimensions.

3
New cards

Static arrays

data structures with a fixed size. Once an array is created, its size cannot be changed or altered.

4
New cards

Fixed Size

The size of the array is set during the declaration and cannot be modified.

5
New cards

Memory Allocation

The memory is located on the stack, which is faster but has a limited size.

6
New cards

Access Time

The elements can be accessed in constant time since the address of the elements can be calculated using the base address and the index.

7
New cards

Usage

It is ideal for scenarios where the number of elements is known beforehand, such as storing fixed-sized data like days of the week and months of the year.

8
New cards

Dynamic Array

resizable arrays, can change size during runtime.

9
New cards

Resizable

The array can be resized, allowing it to grow or shrink based on the requirements

10
New cards

Memory Allocation

The memory is allocated on the heap, which is more flexible but can be slower due to the overhead of dynamic memory management.

11
New cards

Access Time

Similar to static arrays, elements can be accessed in constant time after they are created.

12
New cards

Usage

It is useful when the number of elements is not known in advance or when the array needs to expand during program execution.

13
New cards
14
New cards
15
New cards

linked list

consists of chains of nodes, where each node contains information, such as data, and a pointer to the next node. Each node is composed of data and a reference (a link) to the next node in the sequence; more complex variants add additional links.

16
New cards

Singly Linked List

consists of nodes where each node contains a data field and a reference to the next node in the linked list. The next of the last node is null, indicating the end of the list.

17
New cards

Doubly Linked List

a more complex data structure than a singly linked list. It allows for efficient traversal of the list in both directions, as each node in the list contains a pointer to the previous node and a pointer to the next node.

18
New cards

Traversal

It means visiting each node in the linked list one by one to read, display, or process its data.

19
New cards

Insertion

It means adding a new node to a linked list. It’s one of the core operations supported by all types of linked lists.

20
New cards

Deletion

It is the operation of removing a node from a linked list.

21
New cards

Search

It means finding a node that contains a specific value by traversing each node one-by-one starting from the head.

22
New cards

Sort

It means arranging its nodes' values in ascending or descending order. Unlike arrays, linked lists do not support random access, so sorting must be done by rearranging the node links or values manually, not by indexing.

23
New cards
24
New cards
25
New cards
26
New cards
27
New cards
28
New cards
29
New cards
30
New cards
31
New cards
32
New cards
33
New cards
34
New cards
35
New cards
36
New cards
37
New cards
38
New cards
39
New cards
40
New cards
41
New cards
42
New cards
43
New cards
44
New cards
45
New cards
46
New cards
47
New cards
48
New cards
49
New cards
50
New cards
51
New cards
52
New cards
53
New cards
54
New cards