DSA Concepts Flashcards

1
Q

is a method of organizing data in a virtual system. examples are sequence of numbers, tables of data

A

Data Structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

is a sequence of steps executed by a computer that takes an input and transforms it into a target output

A

Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

allows us to organize and store data

A

Data Structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

allows us to process that data in a meaningful way

A

Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Uses of DSA

A
  • allows us to organize and store data while algorithm allows us to process that data in a meaningful way
  • specialized format for organizing, processing, retreiving, and storing data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Importance of DSA in Problem Solving

A
  • helps breakdown complex problems into smaller, more manageable components, allowing for easier analysis and solution design
  • developers (programmers) can identify patterns and apply appropriate solutions to a wide range of challenges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

can identify patterns and apply appropriate solutions to a wide range of challenges

A

developers (programmers)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

is a type of linear data structure that is defined as a collection of elements with some or different data types

A

Array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

is used as solutions to many problems from the small sorting problems to more complex problems

A

Array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

an ordered list in which all insertions and deletions are made at one end, called the top of the stack

A

Stacks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

clears the stack, all elements in the stack will be deleted or cleared

A

Clearstack (s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

there is no element in the stack

A

Emptystack (s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

insert or add an element onto the stack

A

Push (i, s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

remove or delete an element from the stack

A

Pop (s, d)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

the operator is placed between operands

A

Infix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

the operator is placed before the operands

A

Prefix

17
Q

the operator is placed after the operands

A

Postfix

18
Q

_____ an ordered list in which all insertions are made at one end called the _____, and all deletions are made at the other end called the ______

A

Queue, rear, front

19
Q

it clears the queue, once the queue is clear, no elements remain in the queue

A

Clear queue (Q)

20
Q

there is no element in the queue

A

Entry queue (Q)

21
Q

insert an element or node in the queue

A

En queue (i, q)

22
Q

delete any element or node in the queue

A

De queue (q, d)

23
Q

hierarchical data structure in which each note has at most two chidren, referred to as the left child and the right child

A

Binary Tree

24
Q

it is commonly used for efficient storage and retrieval of data, with various operations such as insertion, deletion, traversal

A

Binary Tree

25
Q

3 Types of Binary Tree

A
  • Full Binary Tree
  • Complete Binary Tree
  • Skewed to the left/right
26
Q

3 Binary Tree Traversal

A
  • Inorder traversal (LTR)
  • Pre-order traversal (TLR)
  • Post-order traversal (LRT)
27
Q
A