Definitions Flashcards
Define Data
It represents a value or a set of values that does not carry any meaning.
What is information?
The processed data that carry information is called as information.
Define: Data Structures
It is a way of organizing data, such that accessing of data becomes easier. It also plays a vital role in creating efficient programs.
What are the applications of Data Structures?
- Compiler design
- Operating System
- Statistical Analysis package
- DBMS
- Numerical analysis
- Simulation
- Artificial Intelligence
- Graphics
What is an efficient program? And when is the program considered as a good program?
A program is said to be efficient when it executes in minimum time and with minimum memory space. A good program is defined to be a program that runs correctly, is easy to read and understand, is easy to debug and is easy to modify.
What are some examples of Data Structures?
Stacks, Queue, Array, Linked list, Binary trees and Hash tables.
Define ADT
ADT or Abstract Data Type is a set of operations that tells us what to do rather than how to do. Hence, it is easy to maintain, extend and update at later years.
What are the operations of DS?
Inserting, Deleting, Searching, Traversing and Merging.
What are the two classifications of DS?
Primitive (int, char, float, double, etc.,) and Non-Primitive (Linear: Array, linked list, stack, queue| Non-Linear: Trees, Graphs and Tables)
What is an array?
An array is a collection of data items of similar data type.
What is a Linked List?
It is a linear data structure that consists of several nodes, each with two parts. First part is the data field and the next part is the address of the next node.
What is a circularly linked list?
It is a collection of nodes, each having two fields. The data field and the address field. In a circularly linked list, the address field of the last node points to the address of the first node.
What is a stack?
A stack is a linear data structure in which elements are inserted and deleted at only one end called top of the stack. Elements are inserted and deleted or removed by the LIFO principle (Last In, First Out).
What are the two fundamental operations of a stack?
Push: Add elements to the stack and Pop: Remove elements from the stack. Some additional operations are Peek (Top): Retrieve the top element without removing it, isEmpty(): Checks whether the stack is empty and isFull(): Checks whether the stack is full.
Define underflow.
The underflow condition in a stack occurs when a pop or peek operation is attempted on an empty stack.
Define overflow.
The overflow condition in a stack occurs when a push operation is attempted on a full stack, that is, a stack that has reached it’s maximum capacity.
Define Queue.
Queue is a linear data structure in which elements are inserted in one end called ‘rear’ and deleted in the other end called ‘front’. Other name is FIFO (First In, First Out)
What are the two operations in Queue?
Enqueue: process of inserting an element into the queue and Dequeue: process of deleting an element from the queue.
Define trees.
It is a non-linear data structure which is a collection of nodes with one distinct node called root node, while the remaining nodes are partitioned as t1, t2,…, tk where k>=0 each of which are sub trees and the edges of t2 to tk are connected to the root.
What is a binary tree?
In a binary tree, each node can have at most two children. A binary tree is either empty or consists of a root node with a left and right subtree.
Define full binary tree.
A binary tree in which it has two children or no child.
Define complete binary tree.
It is a binary tree with every level except possibly the last is completely filled and all nodes in the last level are as far left as possible.
What is called as a perfect binary tree?
It is a binary tree where all the leaf nodes are at the same level.
What is an expression tree?
It is a binary tree used to represent algebraic and Boolean expression. It is a tree with leaves as operands and nodes as operators.