INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS

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/64

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:05 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

65 Terms

1
New cards

Data structures

A fixed-length, ordered collection of values of the same type stored in contiguous memory locations.

2
New cards

elements

The collection may be ordered in several dimensions. It consists of a collection of

3
New cards

array index or key.

each identified by at least one (1)

4
New cards

(matrix)

An array can be considered as the simplest type of data structure and can be either a one dimensional array or a two-dimensional array

5
New cards

List

An abstract data type that represents a sequence of values, where the same value may occur more than once.

6
New cards

instance

of a list is a computer representation of the mathematical concept of a finite sequence

7
New cards

stream

infinite analog of a list is a

8
New cards

Linked List

Consists of chains of nodes where each node contains information such as data and a pointer to the next node in the chain.

9
New cards

reference (a link)

Each node is composed of data and a ___ to the next node in the sequence; more complex variants add additional links.

10
New cards

Stack

A kind of abstract data type or collection in which the principal operations on the collection are the addition of an entity to the collection (push) and the removal of an entity (pop).

11
New cards

Last-In-First-Out (LIFO)

data structure that the last element added to the structure must be the first one to be removed.

12
New cards

top of the stack

The push and pop operations occur only at one end of the structure, referred to as the ___

13
New cards

peek

top operation can also be implemented, returning the value of the top element without removing it.

14
New cards

Queue

A kind of abstract data type or collection in which the entities in the collection are kept in order, and the principal operations on the collection are the addition of entities to the rear terminal position and the removal of entities from the front terminal position.

15
New cards

First-In-First-Out (FIFO)

data structure where the first element added to the queue will be the first one to be removed.

16
New cards

Hashing

A method for storing and retrieving records from a database. It allows one to insert, delete, and search for records based on a search key value.

17
New cards

hash table

A hash system stores records in an array called a ___

18
New cards

hash function

The calculations are done by a function called

19
New cards

Trees

A data structure made up of nodes or vertices and edges without having any cycles.

20
New cards

null or empty tree

A tree with no nodes is called the

21
New cards

root node

A tree that is not empty consists of a ___ and potentially many levels of additional nodes that form a hierarchy.

22
New cards

starting at a root node

A tree data structure can be defined recursively as a collection of nodes

23
New cards

children

where each node is a data structure consisting of a value, together with a list of references to nodes

24
New cards

Abstract Array

  • Adding elements

  • Sorting elements

  • Searching elements

  • Re-arranging the elements

  • Performing matrix operations

  • Pre-fix and post-fix operations


25
New cards

Abstract List

  • Inserting

  • Searching

  • Deletion


26
New cards

Abstract Link

  • Checking whether the list is empty

  • Accessing a node to modify it or to obtain the information in it

  • Traversing the list to access all elements, such as to print them or to find a specific element

  • Determining the size (i.e., the number of elements) of the list

  • Inserting or removing a specific element

  • Creating a list by reading the elements from an input stream

  • Converting a list to and from an array, string, etc.


27
New cards

Abstract Stack

  • Push, which inserts some data item into the structure

  • Pop, which extracts an item from it

  • Peek or top, which allows data on top of the structure to be examined without removal.


28
New cards

Abstract Queue

  • Enqueue, to join the queue

  • Dequeue, to remove the first element from the queue

  • Front, to access and serve the first element in the queue


29
New cards

Abstract Hashing

  • Add (Insert)

  • Delete (Removing)


30
New cards

Abstract Tree

  • Searching

  • Insertion

  • Deletion

  • Traversal

  • Sort


31
New cards

algorithm

a finite sequence of steps for accomplishing a computational task.

32
New cards

input

An algorithm can be considered as a computational procedure that consists of a set of instructions that takes some value or set of values as

33
New cards

output

produces some value or set of values as

34
New cards

• Each step of an algorithm must be exact.
• Algorithms must terminate.
• It must be effective.
• It must be general.
• It must be unique.
• Finiteness.
• Output.

Characteristics of an Algorithm:

35
New cards

Each step of an algorithm must be exact.

An algorithm must be precise and unambiguously described. This eliminates any uncertainty.

36
New cards

Algorithms must terminate.

Since the ultimate aim of an algorithm is to solve a problem, it must terminate; otherwise, there will not be a solution to the problem. This leads to the fact that an algorithm must have a finite number of steps in its execution. The presence of endless loops must be avoided.

37
New cards

It must be effective.

An algorithm must provide the correct answers at all times.

38
New cards

It must be general.

An algorithm must solve every instance of a problem.

39
New cards

It must be unique.

Results of each step are uniquely defined and only depend on the input and the result of the preceding steps.

40
New cards

Finiteness.

The algorithm stops after a finite number of instructions are executed.

41
New cards

Output.

The algorithm always produces output.

42
New cards

Human Language

Expressing algorithms means describing a sequence of steps or instructions using plain, natural language instead of formal programming code or mathematical notation. This method is typically used to make the logic of an algorithm understandable to people without requiring technical syntax or specific tools.

43
New cards

Pseudocode

An informal high-level description of the operating principle of a computer program or other algorithm. It is a procedure for solving a problem based on the actions to be executed and the order in which those actions are to be executed.

44
New cards

Flowchart

A type of diagram that represents an algorithm, workflow, or process. It shows the steps in the form of boxes of various kinds and their order by connecting them with arrows.

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
55
New cards
56
New cards
term image
knowt flashcard image
57
New cards
term image
knowt flashcard image
58
New cards
term image
knowt flashcard image
59
New cards
term image
knowt flashcard image
60
New cards
term image
knowt flashcard image
61
New cards
term image
knowt flashcard image
62
New cards
term image
knowt flashcard image
63
New cards
term image
knowt flashcard image
64
New cards
term image
knowt flashcard image
65
New cards
term image
knowt flashcard image