Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label data structure. Show all posts
Showing posts with label data structure. Show all posts

Multiply Matrices by Strassen's Method

C++ Program to multiply matrix using Strassen's Multiplication method. This program calculates the multiplication of 2 matrices by Strassen's Multiplication method. We define a 3 arrays : 'a' , 'b' & 'c' , all of int type. All 3 are input by the user. The number of rows & columns are made fix to 2. Then the multiplication is calculated by using strassen's method and the new multiplied matrix is printed on the screen.

QUEUE operations using Array

C++ Program for the implementation of Linear Queue operation (insert, delete & display). C++ Program to implement QUEUE operations using Array. Queue is a abstract data type, In which entities are inserted into the rear end and deleted from the front end.
Queue based on the FIFO (First In First Out) criteria,means the element inserted first is get deleted first.

Stack Operations using arrays

C++ program for implementation of Stack (push,pop & display) operation.Stack based on the LIFO (Last In First Out) behavior means, the last element is pushed(insert) inside the stack , is the first element to get pop(deleted).Stack is a data structure in which the objects are arranged in a non linear order. In stack, elements are added or deleted from only one end, i.e. top of the stack. Here we implement the PUSH, POP, DISPLAY stack operations using the array.

Circular Linked List in C++

Program for the implementation of  Circular Linked List in C++ language. In this program you can insert in circular link list, although the output seems as the singular link list but the code is written for circular list. Further addition if circular display function for viewing the operation don in the list. In Circular Linked List ending node not having the null value. Last node again point to starting node that's why it called as Circular Linked list.

Linked List Insert & Deletion operation in C++

Program for Linked List Insertion & Deletion Operation both done in same program using C++ language. So for easy access at all operation use of switch case is done in program. You can select one operation at a time. Total six operation is describe of insert & delete that is:-
1. Ins/Del at beg   2.Ins/Del at end   3.Ins/Del at specific location.
Further addition of display function for viewing the linked list.

Linked List Insert Operation in C++

Program for Insert element in Linked List using C++ language. Linked list has the dynamic memory allocation,thats why we can add n number of node in link list at our desire location.Simply use of three insertion operation done in this linked list program
1.Insert at beg                         2.Insert at end
3.Insert at specific location

Selection sort in C++

C++ program for selection sort to sort numbers. This code implements selection sort algorithm to arrange numbers of an array in ascending order. With a little modification it will arrange numbers in descending order.

C++ program for binary search

This code implements binary search in c ++language. It can only be used for sorted arrays, but it's fast as compared to linear search. If you wish to use binary search on an array which is not sorted then you must sort it using some sorting technique say merge sort and then use binary search algorithm to find the desired element in the list. If the element to be searched is found then its position is printed.

Linear search in C++

The following code implements linear search (Searching algorithm) which is used to find whether a given number is present in an array and if it is present then at what location it occurs. It is also known as sequential search. It is very simple and works as follows: We keep on comparing each element with the element to search until the desired element is found

Insertion Sorting

C++ program for insertion sort to sort numbers. This code implements insertion sort algorithm to arrange numbers of an array in ascending order. With a little modification it will arrange numbers in descending order.

Matrix multiplication in c++

 c++ program to multiply matrices (two dimensional array), this program multiplies two matrices which will be entered by the user. Firstly user will enter the order of a matrix. If the entered orders of two matrix is such that they can't be multiplied then an error message is displayed on the screen.

Operation of Linear Array (traverse,search,insert,delete)..

Program for all Operation of Singular ARRAY ,
1 Traversing                2 Searching
3 Insertion                    4 Deletion
use of switch case and function calling technique to reduce the complexity of program..

Square Matrix Addition and Subtraction ......

  Program for the Addition & Subtraction of two square Matrix (using two dimensional array).
well simple program, user can input the value of row & column,since it is a square matrix
so row & column of both matrix is same.
Blogger Widgets

Find Us On Google, Just type - way2cplusplus -

If you have any questions on implementing or understanding this C++ Program , shoot me a comment and I'll be glad to help! :) :)