There are plenty of application in AI but games are the most important thing in today's world and nowadays every OS comes with two player games like chess, checkers etc. So there are algorithm that help to design these games. These algorithm not only just help in making games but they also help...
1/27/12
1/26/12
Find the largest sum in an Array Problem
$(document).ready(function(){
$(".flip").click(function(){
$(".panel").slideToggle("slow");
});
});
div.panel,p.flip
{
margin:0px;
padding:5px;
text-align:center;
background:#e5eecc;
border:solid 1px #c3c3c3;
}
div.panel
{
height:750px;
display:none;
}
You are given an array of integers...
1/16/12
Counting Sort Algorithm with Example
After a long interval of time I am writing a post on ALGORITHMS. After writing posts on Heap Sort, Merge Sort and Insertion Sort, I decided to write on Counting Sort.
Counting sort is an algorithm for sorting a collection of objects according to keys that are small integers; that is, it is an integer...
1/12/12
Advance I/O Streams in Java
A Stream is a flow of data from the source to a sink. Source and sink are also called input and output streams, respectively.
The I/O Streams are of two Kinds :
1. Byte Streams
2. Character Streams
Normally the term stream refers to the byte stream and the...
1/4/12
Finalize(), Finally and Final in Java
There's some confusion in the mind of an intermediate level programmer about finalize(),finally and final in java. So to remove that confusion from each and everyone's mind I thought of writing a post on it.
finalize() : A Method
finally : A Clause in Try-Catch
final : Keyword...