Programming languages are complex even today at least to many programmers like me. But once you know the history of programming languages, you’ll definitely change your mind. Machine Language You might already know the computers understand only two symbols, zero (0) and one (1). Everything in computer is represented in form of zeros and ones. … Continue reading “History of Programming Languages”
C Program to Find Second Largest Element in an Array
Here we’ll see the possible solutions of finding the second largest element in an array. By Sorting the Array: Easy solution that I can think of to find the second largest element in an array is to first sort the array and then pick the second or second last element of the array depending on … Continue reading “C Program to Find Second Largest Element in an Array”
How to Implement Shell Sort in C Programming?
Shell Sort (aka shellsort) can be thought as an improvement over insertion sort. To understand shell sort, we have to recall how insertion sort works. In insertion sort at any moment, the whole array is sub-divided in two sections, one is sorted and another is not. One element is picked from the unsorted section and compares with the … Continue reading “How to Implement Shell Sort in C Programming?”
How to Implement Quick Sort in C?
Quick Sort is an efficient sorting algorithm developed by Tony Hoare in 1959. It is still a commonly used sorting algorithm in most practical cases. If implemented properly, it is two or three times faster than other efficient sorting algorithms like merge sort or heap sort. Here we’ll see how to implement this sorting algorithm … Continue reading “How to Implement Quick Sort in C?”
How to Implement Merge Sort in C?
Merge sort is an efficient, general-purpose sorting algorithm. Unlike bubble sort or insertion sort, it is usable in most practical cases. Merge sort implementation is based on divide and conquer algorithm. Here we’ll see how to implement merge sort in C programming language. And also we’ll analyze its performance in various conditions. Merge Sort Algorithm … Continue reading “How to Implement Merge Sort in C?”