top of page
Search
Abhinaw Tripathi
Jun 14, 20162 min read
Tree continue complete example in core-java
Complete Tree program: import java.util.Stack; /** * */ /** * @author Abhinaw.Tripathi * */ class Node { public int iData; ...
4 views0 comments
Abhinaw Tripathi
Jun 14, 20162 min read
Binary Tree continues example in java
Finding a Node Finding a node with a specified key is the simplest of the major tree operations. Code example: public Node find(int key)...
3 views0 comments
Abhinaw Tripathi
Jun 14, 20162 min read
Binary Trees
Why use Binary Trees? Because,it combines the advantage of two other structures: an ordered array and linked list.you can search a tree...
3 views0 comments
Abhinaw Tripathi
Jun 13, 20162 min read
Quick Sort example in core-java
Quick Sort: Quick Sort is the most popular sorting algorithm.In the majority of situations ,it is fastest,operating in O(N*logN) time ....
5 views0 comments
Abhinaw Tripathi
Jun 13, 20161 min read
Partitioning example in core java
Partitioning: Partitioning is the underlying mechanism of quick sort.It is also useful operation on its own.To partitioning data is to...
4 views0 comments
Abhinaw Tripathi
Jun 13, 20162 min read
Shell Sort example in java
Shell sort is a sorting algorithm that requires asymptotically fewer than O(n²) comparisons and exchanges in the worst case. Although it...
2 views0 comments
Abhinaw Tripathi
Jun 10, 20161 min read
Merge sort example in core java recursion
Merge Sort: our final example of recursion is the merge-sort.This is more sorting technique.While the bubble,insertion and selection...
5 views0 comments
Abhinaw Tripathi
Jun 10, 20161 min read
Divide-and-Conquer Algorithms and Tower of Hanoi Puzzle in core-java
What is Divide-and-Conquer Algorithms? Divide-and-Conquer Algorithms: The Divide-and-Conquer approach is commonly used with...
4 views0 comments
Abhinaw Tripathi
Jun 10, 20161 min read
Recursive Binary Search example in core java
Binary Search: We can make binary search recursive like below . first we will see simple binary search then will see recursive binary...
5 views0 comments
Abhinaw Tripathi
Jun 10, 20161 min read
Recursion Anagrams example in core-java
Anagrams: Some times anagrams suits in a situation in which recursion provides a neat solution to a problem.A permutation is an...
6 views0 comments
Abhinaw Tripathi
Jun 9, 20162 min read
Recursion in Java example
What is Recursion? Recursion is a programming technique in which a method calls itself.This may sound like a strange thing to do or even...
5 views0 comments
Abhinaw Tripathi
Jun 9, 20162 min read
Doubly Linked Lists operation example in core java
Doubly Linked List basic operation example: /** * */ /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link...
5 views0 comments
Abhinaw Tripathi
Jun 9, 20161 min read
Queue implemented by a Linked List in core-java
Queue implemented by a Linked List: /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link next; public...
3 views0 comments
Abhinaw Tripathi
Jun 8, 20161 min read
Double-Ended Lists in core-java
Double-Ended List A double-ended lists is similar to an ordinary linked list but it has one additional feature that a reference to the...
2 views0 comments
Abhinaw Tripathi
Jun 7, 20162 min read
Linked List Discussion in Core-Java
Linked-Lists : As we know that Arrays had certain disadvantages as data storage structures .in an unordered array ,searching is...
3 views0 comments
Abhinaw Tripathi
Jun 7, 20161 min read
Sorting Objects
Sorting Objects: For simplicity we have applied the sorting on the primitive data type.However,sorting routines will more likely be...
1 view0 comments
Abhinaw Tripathi
Jun 2, 20162 min read
Binary Tree to Binary Search Tree Conversion
Following is a 3 step solution for converting Binary tree to Binary Search Tree. 1) Create a temp array arr[] that stores inorder...
5 views0 comments
Abhinaw Tripathi
Jun 2, 20161 min read
Find k-th smallest element in BST (Order Statistics in BST)
Solution Approach: By using In order traversal of BST retrieves elements of tree in the sorted order. The in order traversal uses stack...
5 views0 comments
Abhinaw Tripathi
Jun 2, 20161 min read
Total number of possible Binary Search Trees with n keys?
Solution Approach: Before going deeper,we should know about Catlan Number. Here it is: Total number of possible Binary Search Trees...
2 views0 comments
Abhinaw Tripathi
Jun 2, 20161 min read
How to check if a Binary Tree is BST or not?
What is Binary Search Tree(BST)? A binary search tree (BST) is a node based binary tree data structure. Must have these Properties: ...
4 views0 comments
bottom of page