REVIEWER OF DSA Midterm
REVIEWER OF DSA Midterm
- is an abstract data
(EXSAMPLE OF FIFO)
• is the structural representation of logical relationships structure, somewhat similar to Stacks. Unlike stacks, a
between elements of data. queue is open at both its ends. One end is always used to
• The building blocks of a program. insert data (enqueue) and the other is used to remove data
• A way to store and organize data in order to facilitate (dequeue). Queue follows First-In-First-Out
the access and modifications. methodology, i.e., the data item stored first will be
• The method of representing of logical relationships accessed first.
between individual data elements related to the
solution of a given problem.
stands for P- Parentheses, E- Exponents, M- - These are the basic data structures and are directly
Multiplication, D- Division, A- Addition, and S- operated upon by the machine instructions, which is in a
Subtraction. primitive level
- used to mention the order of operations to be Includes: byte , short , int , long , float , double ,
followed while solving expressions having boolean and char.
multiple operations.
https://www.cuemath.com/numbers/pemdas/
- Analysis of space
complexity of an algorithm or program is the amount of
memory it needs, to run to completion. Ex: Quadratic //
Some of the reasons for studying space complexity are:
a. If the program is to run on multi User system, it may
be required to specify the amount of memory to be
allocated to the program.
Call ... with (parameters)
Do Until...Enddo Call
Call Case... EndCase Return
Return If...Endif When
Ans: A.
Shortcut Term:
top – increment 1
Push – insert
Pop – decrement
Size – Number of elements
Answer
Exercise
Scanner Character: