Lists and Linked Lists

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/84

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

85 Terms

1
New cards

List

An Abstract Data Type for storing elements.

2
New cards

Linked List

A data structure consisting of nodes connected by pointers.

<p>A data structure consisting of nodes connected by pointers.</p>
3
New cards

Static Data Structure

Size cannot change after creation.

4
New cards

Dynamic Data Structure

Size can grow or shrink during execution.

5
New cards

Abstract Data Type (ADT)

Data type defined by its operations, not implementation.

6
New cards

Queue

An ADT that follows First In First Out principle.

7
New cards

Enqueue

Operation to add an item to the queue.

8
New cards

Dequeue

Operation to remove an item from the queue.

9
New cards

Heap

Memory area for dynamic allocation.

10
New cards

Pointer

Variable that stores the address of another variable.

11
New cards

Built-in List

Predefined list data type in programming languages.

12
New cards

Dynamic List Support

Languages like Python and Java can resize lists.

13
New cards

Memory Location

Specific address in memory for data storage.

14
New cards

Traversal

Process of visiting each element in a list.

15
New cards

Adding Data

Inserting new elements into a list.

16
New cards

Removing Data

Deleting elements from a list.

17
New cards

Operations on Lists

Common functions include add, remove, and traverse.

18
New cards

Real-life List Examples

Students, products, songs, or queue items.

19
New cards

Implementation Hiding

User does not see how data structures work.

20
New cards

Data Types

Basic types like integer, real, and character.

21
New cards

Complex Data Types

Combines basic types for efficient problem-solving.

22
New cards

Dynamic Allocation

Allocating memory at runtime for data structures.

23
New cards

isEmpty()

Checks if the list has no items.

24
New cards

append(item)

Adds item to the end of the list.

25
New cards

remove(item)

Deletes the first occurrence of item.

26
New cards

count(item)

Counts occurrences of item in the list.

27
New cards

len(item)

Returns total number of items in list.

28
New cards

index(item)

Finds the position of item in list.

29
New cards

insert(pos,item)

Inserts item at specified position pos.

30
New cards

pop()

Removes and returns the last item.

31
New cards

pop(pos)

Removes and returns item at position pos.

32
New cards

enqueue

Adds an item to the end of the queue.

33
New cards

dequeue

Removes and returns the front item of the queue.

34
New cards

isFull()

Checks if the queue has reached max size.

35
New cards

isEmpty()

Checks if the queue has no items.

36
New cards

maxSize

Maximum number of items the queue can hold.

37
New cards

circular queue

Queue structure that wraps around when full.

38
New cards

sorting methods

Techniques to arrange list items in order.

39
New cards

merging lists

Combining two or more lists into one.

40
New cards

searching lists

Finding specific items within a list.

41
New cards

comparing lists

Evaluating differences or similarities between lists.

42
New cards

pseudocode

High-level description of algorithm operations.

43
New cards

Random Clothing Task

Worksheet exercise related to list operations.

44
New cards

Linked List

Dynamic data structure using nodes and pointers.

45
New cards

Node

Basic unit of a linked list containing data and pointer.

46
New cards

Data

Information stored in a node, can be complex.

47
New cards

Pointer

Index of the next node in the list.

48
New cards

Start Pointer

Indicates the first node in the linked list.

49
New cards

Nextfree Pointer

Index of the next available space in array.

50
New cards

Array Implementation

Linked list represented using an array structure.

51
New cards

Initialisation

Setting up an empty array as linked list.

52
New cards

Adding Elements

Process of inserting new nodes into the list.

53
New cards

Delete Node

Adjusting pointers to remove a node from the list.

54
New cards

Peeking Ahead

Examining data and pointer of current and next node.

55
New cards

Index

Position of a node within the array.

56
New cards

Null Pointer

Indicates the end of the linked list.

57
New cards

Free Nodes

Nodes that are available for new data insertion.

58
New cards

Head of the List

First node in a linked list.

59
New cards

Adjusting Pointers

Changing pointer references during node operations.

60
New cards

Complex Data Structure

Data type that can hold multiple values.

61
New cards

Dynamic Structure

Size can change during program execution.

62
New cards

List Traversal

Accessing each node in a linked list sequentially.

63
New cards

Linked List Diagram

Visual representation of nodes and pointers.

64
New cards

State of Array

Current configuration of data and pointers in array.

65
New cards

Node Insertion

Process of adding a new node to the list.

66
New cards

Dynamic Data Structure

Data structure that can grow or shrink in size.

67
New cards

Linked List

A collection of nodes where each node points to the next.

68
New cards

Pointer

Reference to the next node in a linked list.

69
New cards

Inserting a Node

Adding a new node to a linked list.

70
New cards

Deleting a Node

Removing a node from a linked list.

71
New cards

Static Data Structure

Fixed size data structure, cannot change size.

72
New cards

Array of Records

Data structure storing multiple records in contiguous memory.

73
New cards

nextfree

Pointer to the next available space in the list.

74
New cards

List[p].Pointer

Pointer indicating the next node in the list.

75
New cards

List[next].data

Data stored in the node pointed by next.

76
New cards

List[next].pointer

Pointer in the next node, indicating its successor.

77
New cards

Queues

Abstract data type that follows FIFO principle.

78
New cards

Stacks

Abstract data type that follows LIFO principle.

79
New cards

Trees

Hierarchical data structure with nodes and edges.

80
New cards

Algorithm

Step-by-step procedure for solving a problem.

81
New cards

Processing a Linked List

Performing operations like traversal, insertion, deletion.

82
New cards

Task 3

Worksheet task focused on linked list algorithms.

83
New cards

Copyright

Legal protection of original works and materials.

84
New cards

Licence Agreement

Contract defining usage rights of materials.

85
New cards

Plenary

Session summarizing key points of a topic.