DSA Concepts Flashcards
is a method of organizing data in a virtual system. examples are sequence of numbers, tables of data
Data Structure
is a sequence of steps executed by a computer that takes an input and transforms it into a target output
Algorithm
allows us to organize and store data
Data Structure
allows us to process that data in a meaningful way
Algorithm
Uses of DSA
- 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
Importance of DSA in Problem Solving
- 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
can identify patterns and apply appropriate solutions to a wide range of challenges
developers (programmers)
is a type of linear data structure that is defined as a collection of elements with some or different data types
Array
is used as solutions to many problems from the small sorting problems to more complex problems
Array
an ordered list in which all insertions and deletions are made at one end, called the top of the stack
Stacks
clears the stack, all elements in the stack will be deleted or cleared
Clearstack (s)
there is no element in the stack
Emptystack (s)
insert or add an element onto the stack
Push (i, s)
remove or delete an element from the stack
Pop (s, d)
the operator is placed between operands
Infix