Introduction to fundamentals of algorithms Flashcards
1
Q
What is a data structure?
A
An organization of data to solve a problem at hand
2
Q
What is an algorithm?
A
Algorithm is a step by step procedure , which defines a set of instructions to be executed in a certain order to get the desired output.
3
Q
3 examples for primitive data structures
A
- integer
- float
- char
- pointers
4
Q
3 examples for non primitive data structures
A
- arrays
- lists
- files