Skip to content
  • Home
  • jQuery
  • PL/SQL
  • Data Structure
  • Terms & Conditions
  • Privacy

Roy Tutorials

Technical…Practical…Theoretical…

  • Home
  • jQuery
  • PL/SQL
  • Data Structure

Category: Array

Array C Data Structure Sort Algorithm 

Quick Sort using C

 May 31, 2018  November 4, 2017 by Soumitra Roy Sarkar

Quick sort or quicksort (sometimes called partition-exchange sort) is an efficient and very fast sorting algorithm for internal sorting, serving as a systematic method for placing the elements of an array in order. When implemented well, it can be about two or…

No comment
Continue Reading
Array C Data Structure Sort Algorithm 

Bubble Sort using C

 March 31, 2018  November 3, 2017 by Soumitra Roy Sarkar

Bubble sort is one of the most popular sorting methods. It can be treated as a selection sort because it is based on successively selecting the smallest element, second smallest element and so on. In order to find the successive smallest elements…

No comment
Continue Reading
Array C Data Structure Sort Algorithm 

Straight Selection Sort using C

 March 31, 2018  November 2, 2017 by Soumitra Roy Sarkar

Selection sorting refers to a class of algorithms for sorting a list of items using comparisons. These algorithms select successively smaller or larger items from the list and add them to the output sequence. This is an improvement of the Simple Selection…

No comment
Continue Reading
Array C Data Structure Sort Algorithm 

Simple Selection Sort using C

 March 31, 2018  November 1, 2017 by Soumitra Roy Sarkar

The simplest possible technique based on the principle of repeated selection makes use of “n” passes over an array elements. In the i-th pass, the i-th smallest element is selected from the given array and it is placed in the i-th position…

No comment
Continue Reading
Array C Data Structure Sort Algorithm 

Shell Sort using C

 March 31, 2018  October 31, 2017 by Soumitra Roy Sarkar

This method makes repeated use of straight insertion or shuttle sort. An array with n elements, in each pass, an increment is chosen. The increment must be less than n and the increment progressively should be smaller and the last increment must…

No comment
Continue Reading
Array C Data Structure Sort Algorithm 

Straight Insertion Sort using C

 March 31, 2018  October 29, 2017 by Soumitra Roy Sarkar

Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. More details can be found here at https://en.wikipedia.org/wiki/Insertion_sort Let’s say we have an array a, so at each i-th pass, a[i] is…

No comment
Continue Reading
Array C Data Structure Sort Algorithm 

Shuttle Sort using C

 March 31, 2018  October 28, 2017 by Soumitra Roy Sarkar

In Shuttle Sort technique for n elements in an array a, it requires n-1 passes. When i-th pass(1<=i<=n) begins, the first i elements, i.e., elements a[0] to a[i-1] have been sorted and these occupy the first i positions of the array. To…

No comment
Continue Reading
Array C Search Algorithm 

Binary Search using C

 March 6, 2018  October 17, 2017 by Soumitra Roy Sarkar

This example shows how Binary Search Algorithm works. Binary search algorithm is better when an array is sorted because it makes comparison between the search key “k” and middle element of the array. Since the array is sorted, the comparison results either…

No comment
Continue Reading
Array C Search Algorithm 

Sequential Search using C

 March 6, 2018  October 13, 2017 by Soumitra Roy Sarkar

This example shows how Sequential Search algorithm works. Simple way to search for a key value k in an array a is to compare the values of the elements in a with k. The process starts with the first element of the…

No comment
Continue Reading
Array C Data Structure Structure 

Multiplication of Two Polynomials using C Program

 March 31, 2018  July 30, 2017 by Soumitra Roy Sarkar

This example shows how to multiply two polynomials using C program. For multiplication of two polynomials we will use here Structure, which is a composite data type, in which we can define all data types under the same name or object. Size…

No comment
Continue Reading

Posts navigation

1 2 Next

Categories

Recent Posts

Monitor health of a URL using Unix

February 2, 2019
No comment

File Upload Example using Angular

January 22, 2019
No comment

Figure out which cron job chokes up your system in Linux

January 14, 2019
No comment

Read last n lines from file using Python

December 18, 2018
No comment

Fibonacci Series using Python Programming

December 5, 2018
No comment
Facebook Like me on facebook
Twitter Tweet me on twitter
Linkedin Join me on Linkedin
GooglePlus Join me on Google Plus
Reddit Join me on Reddit

About Me

Soumitra Roy Sarkar
I am a professional Web developer, Enterprise Application developer, Software Engineer and Blogger. Connect me on JEE Tutorials | Twitter | Facebook | Google Plus | Linkedin | Reddit

Grid Posts

Monitor health of a URL using Unix

February 2, 2019
No comment

File Upload Example using Angular

January 22, 2019
No comment

Figure out which cron job chokes up your system in Linux

January 14, 2019
No comment

Random Posts

Generate Excel Report from MySQL Database using Codeigniter

June 4, 2018
1 Comment

Generate zero-fill auto-incremented id in MySQL

June 10, 2014
No comment

Upload and Crop Image using Codeigniter

May 8, 2016
No comment

Useful Links

  • jQuery
  • PL/SQL
  • Privacy
  • Terms & Conditions
Copyright © 2019 Roy Tutorials
Privacy   Terms & Conditions