In divide and conquer approach, the problem in hand, is divided into
smaller sub-problems and then each problem is solved independently. When
we keep on dividing the subproblems into even smaller sub-problems, we
may eventually reach a stage where no more division is possible.
পৃষ্ঠাসমূহ
Labels
Search Your Article
CS
Pageviews
Monday, January 30, 2017
Data Structures - Dynamic Programming
Dynamic programming approach is similar to divide and conquer in
breaking down the problem into smaller and yet smaller possible
sub-problems. But unlike, divide and conquer, these sub-problems are not
solved independently. Rather, results of these smaller sub-problems are
remembered and used for similar or overlapping sub-problems.
Data Structures & Algorithm Basic Concepts
This chapter explains the basic terms related to data structure.
Data Definition
Data Definition defines a particular data with the following characteristics.- Atomic − Definition should define a single concept.
- Traceable − Definition should be able to be mapped to some data element.
- Accurate − Definition should be unambiguous.
- Clear and Concise − Definition should be understandable.
Data Structures and Algorithms - Arrays
Array is a container which can hold a fix number of items and these
items should be of the same type. Most of the data structures make use
of arrays to implement their algorithms. Following are the important
terms to understand the concept of Array.
Data Structure and Algorithms - Linked List
A linked list is a sequence of data structures, which are connected together via links.
Linked List is a sequence of links which contains items. Each link contains a connection to another link. Linked list is the second most-used data structure after array. Following are the important terms to understand the concept of Linked List.
Linked List is a sequence of links which contains items. Each link contains a connection to another link. Linked list is the second most-used data structure after array. Following are the important terms to understand the concept of Linked List.
Data Structure - Doubly Linked List
Doubly Linked List is a variation of Linked list in which navigation
is possible in both ways, either forward and backward easily as compared
to Single Linked List. Following are the important terms to understand
the concept of doubly linked list.
Data Structure - Circular Linked List
Circular Linked List is a variation of Linked list in which the first
element points to the last element and the last element points to the
first element. Both Singly Linked List and Doubly Linked List can be
made into a circular linked list.
Data Structure and Algorithms - Stack
A stack is an Abstract Data Type (ADT), commonly used in most
programming languages. It is named stack as it behaves like a real-world
stack, for example – a deck of cards or a pile of plates, etc.
Data Structure - Expression Parsing
The way to write arithmetic expression is known as a notation.
An arithmetic expression can be written in three different but
equivalent notations, i.e., without changing the essence or output of an
expression. These notations are −
Data Structure and Algorithms - Queue
Queue is an abstract data structure, somewhat similar to Stacks.
Unlike stacks, a queue is open at both its ends. One end is always used
to insert data (enqueue) and the other is used to remove data (dequeue).
Queue follows First-In-First-Out methodology, i.e., the data item
stored first will be accessed first.
Data Structure and Algorithms Linear Search
Linear search is a very simple search algorithm. In this type of
search, a sequential search is made over all items one by one. Every
item is checked and if a match is found then that particular item is
returned, otherwise the search continues till the end of the data
collection.
Data Structure and Algorithms Binary Search
Binary search is a fast search algorithm with run-time complexity of
Ο(log n). This search algorithm works on the principle of divide and
conquer. For this algorithm to work properly, the data collection should
be in the sorted form.
Subscribe to:
Posts (Atom)