Friday, July 22, 2011

Insertion sort with program code and tutorial

Posted by on Friday, July 22, 2011
Insertion sort is divided into two parts:
     1. Straight Insertion Sort
     2. Shell Sort 

Insertion sort is a simple sort algorithm, a comparison sort in which the sorted array [or list] is built one entry at a time. It is much less efficient on large lists than the more advanced  Algorithms such as Quick sort, Merge sort or Heap sort.

Sunday, July 10, 2011

Java : Using JDBC API Tutorial

Posted by on Sunday, July 10, 2011
You need to use database drivers and the JDBC API while developing a Java application to retrive or store data in a database. The JDBC API classes and interfaces are available in the java.sql  and the javax.sql  packages.

The commonly used classes and interfaces in the JDBC API are :

DriverManager class : Loads the driver for a database.

Tuesday, July 5, 2011

Merge Sort using Java with program code

Posted by on Tuesday, July 5, 2011
In computer science, merge sort or mergesort is a sorting algorithm for rearranging lists (or any such linear sequential data storage structure) into a specified order. It is a particularly good example of the divide and conquer algorithmic paradigm. It is a comparison sort. Merging is the process of combining two or more sorted files into a third sorted file.

Conceptually, merge sort works as follows:

1. Divide the unsorted list into two sublists of about half the size
2. Sort each of the two sublists
3. Merge the two sorted sublists back into one sorted list

Friday, July 1, 2011

Microsoft SQL Server 2008 connection using ODBC tutorial

Posted by on Friday, July 1, 2011
My previous post was on SQL Server installation . Now today I will be telling how to connect your database ie SQL Server using ODBC with Netbeans.

After you installed SQL Server 2008 Express successfully, now its time to make you of it. So :

© 2010 Code 2 Learn