Php Programming Code Examples
Php > MySQL Code Examples
C Language code Hsort, heap sort [array] -
Array of MAXARRAY length. Preform the heapsort. Help heapsort() to bubble down starting at pos[ition]. Load some random values into the array. Print the original array.
Dictionary implimentation by Binary Trees -
In C++, where first, the 'dictionary' is created by taking an input by the user for the words and their meanings. Next, these are stored in a "Binary Search Tree", after which the file is
Fibonacci Sequence up to Certain Number -
Program to generate Fibonacci Sequence up to a certain number. The Fibonacci sequence is a series where the Next term is the Sum of Pervious 2 terms. The First Two terms of the
Randomized Primality Testings Algorithm -
Method that implements the basic primality test. If witness doesn't return 1, n is definitely composite. Do this by computing a^i (mod n) and looking for "non-trivial" square roots of 1
Perform Integer Partition for Specific Case -
C++ program code generates all the possible "partition" can be generated by breaking the given value. This algorithm takes the input of a "natural number" and prints all the possible
C Program code to Multiply two Matrices -
Read elements in two matrices and multiply them. Matrix multiplication program in C. How to multiply matrices in C programming. Input elements in first matrix from user and...
C++ Language Add Digits of any Number -
To add digits of any number in C++, we enter the number to add their digits & displays the "Addition Result" of the digits of the entered number on the output screen as shown here
Find Intersection & Union of 2 Linked Lists -
This C Program code finds the intersection & union of 2 Linked lists. Intersection is a set of elements that are common in both lists while union is a set of all Unique Elements in both...