Quick Sort Algorithm

sorting algorithm

Quick Sort Algorithm There are may versions of Quick sort, which is one of the most popular sorting methods due to its speed (O(N lgN) average, but O(N^2) worst case). Here’s the steps to follow: Pick a “pivot” item Partition the other items by adding them to a “less than pivot” sublist, or “greater than … Read more

Merge Sort Algorithm

Merge Sort Algorithm Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merge() function is used for merging two halves. The merge(arr, l, m, r) is key process that assumes that arr[l..m] and arr[m+1..r] are sorted and merges … Read more

Linear Search vs Binary Search

Binary search example

Linear Search vs Binary Search A Linear Search is the most basic type of searching algorithm. A Linear Search sequentially moves through your collection (or data structure) looking for a matching value. In other words, it looks down a list, one item at a time, without jumping. Think of it as a way of finding your way in a phonebook Binary … Read more

Matrix multiplication program in C

c program for two-dimensional arrays

Matrix multiplication program in C Matrix multiplication in C language to calculate the product of two matrices (two-dimensional arrays). A user inputs the orders and elements of the matrices. If the multiplication isn’t possible, an error message is displayed. You may have studied the method to multiply matrices in Mathematics. Matrix multiplication in C language … Read more

C Program to Check whether an Alphabet is Vowel or Consonant

c program to check vowel and consonant

C Program to Check whether an Alphabet is Vowel or Consonant This program takes the character value(entered by user) as input and checks whether that character is a vowel or consonant using if-else statement. Since a user is allowed to enter an alphabet in lowercase and uppercase, the program checks for both uppercase and lowercase … Read more

IP Address Program in C

IP address program in c

IP Address Program in C What is IP Address An Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.   Let’s Start Writting C program to find IP Address.   #include<stdlib.h> main() { system(“C:\\Windows\\System32\\ipconfig”); system(“pause”); return 0; }  

CTET Result 2019: सीटीईटी दिसंबर परीक्षा का रिजल्ट घोषित, यह रहा Direct link, 5.42 लाख अभ्यर्थी पास

CTET Result 2019: सीटीईटी दिसंबर परीक्षा का रिजल्ट घोषित, यह रहा Direct link, 5.42 लाख अभ्यर्थी पास CTET Result 2019: केंद्रीय शिक्षक पात्रता परीक्षा ( सीटीईटी ) दिसंबर परीक्षा का रिजल्ट आज जारी कर दिया गया है। जिन उम्मीदवारों ने परीक्षा दी थी वो सीटीईटी की ऑफिशियल वेबसाइट ctet.nic.in पर रिजल्ट चेक कर सकेंगे। रिजल्ट चेक करने … Read more

mysql_secure_installation – MySQL Script

mysql-mysql_secure_installation

mysql_secure_installation – MySQL Script mysql_secure_installation is a shell script available on Unix systems, and enables you to improve the security of your MariaDB or MySQL installation in the following ways: You can set a password for root accounts. You can remove root accounts that are accessible from outside the local host. You can remove anonymous-user accounts. … Read more

Merry Christmas – Program for Christmas Tree in C

merry christmas program in c

Merry Christmas – Program for Christmas Tree in C   To print a Christmas tree, we are printing pyramids of various sizes just one beneath the other. For the decoration, a random character is printed at each position. Height and randomness can be adjusted. This is been repeated frame after frame to give the illusion of a true event. … Read more