Node of Binary Search Tree

First, we need a class of node objects. These objects contain the data representing the objects being stored (employees in an employee database, for example) and also references to each of the node’s two children. Here’s how that looks: class Node{ int iData; //data used as key value float fData; //other data node leftChild; //this Read More…

Binary Tree Terms

A node without children is called a A special type of binary tree called a binary search tree is often useful. Keeping data stored in a sorted order is a way to optimize searches on the data. A binary search tree is a binary tree with the following property. At each node N, every value Read More…

Fundamental Operations on Binary Search Tree

The fundamental operations on a BST are: public void insert(Integer val) public void find(Integer val) public boolean remove(Integer val) public void print()   When implemented properly, BSTs perform insertions and deletions faster than can be done on Linked Lists and performs any find with as much efficiency as the binary search on a sorted array. Read More…

What is Binary Search Tree?

Binary Search Tree arose as a natural solution to the need for incorporating efficient insertion and deletion capabilities of linked lists with the support provided for fast sorting and binary search of sorted elements available in arrays and array lists. Expansion from a linear structure to a two-dimensional structure makes a solution of this kind Read More…

Install Ruby and Rubygems on CentOS 6.5

Install Ruby # wget http://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz # tar xvzf ruby-2.3.1.tar.gz # cd ruby-2.3.1 # ./configure –prefix=/usr # make # make install Remove Ruby remove “ruby-2.3.1” folder Install RubyGems # wget https://rubygems.org/rubygems/rubygems-2.6.6.tgz # tar xvzf rubygems-2.6.6.tgz # cd rubygems-2.6.6 # ruby setup.rb config # ruby setup.rb setup # ruby setup.rb install Remove RubyGems remove “rubygems-2.6.6” folder

Understanding The Three Vs (3Vs) of Big Data

Big Data refers to data that because of its size, speed or format, that is, its volume, velocity or variety, cannot be easily store, manipulated or analyzed with traditional methods like spreadsheet, relational databases or common statistical software. To put in another way, big data is data that doesn’t fit well into a familiar analytic Read More…