MATRIX MULTIPLICATION RULE: For matrix multiplication, the number of columns in the first matrix must be equal to the number of rows in the second matrix. The result matrix has the number of rows of…

CREATE TWO CLASSES dm AND db WHICH STORE THE VALUE OF DISTANCE. WRITE A PROGRAM THAT CAN READ VALUES FOR THE CLASS OBJECTS AND ADD ONE OBJECT OF dm WITH ANOTHER OBJECT OF db. USE…

This program is to implement CPU scheduling algorithm for shortest job first scheduling. SJF is the short form of Shortest Job First scheduling algorithm. In this scheduling we consider shortest burst time. Process with shortest…

This program is to implement CPU & scheduling algorithm for first come first serve scheduling. That is, First process can execute directly, Second process can execute after completion of first process, and so on. Waiting…

TIME COMPLEXITY OF BUBBLE SORT > Bubble sort has a worst-case and average complexity of О(n2), where n is the number of items being sorted. When the list is already sorted (best-case), the complexity of…

At beginning we perform Linear search program to search a given element. It sequentially checks each element of the array until it gets the desired value. There are another approach i.e. DIVIDE AND CONQUER algorithmic…

In computer science, a linear search or sequential search is a method for finding an element within a list. It sequentially checks each element of the list until a match is found or the whole…

Capgemini’s new pattern for the Hiring Process. Recently Capgemini change their password? No! no! They change their hiring process. Some new questions and topics are there. Let’s know what is those patterns. The new process…

## VECTOR IN C++ PROGRAM – SHOUT CODERS

USING VECTOR CLASS Note: std::cout, std::cin, std::endl are used to resolve compilation error, you can use cout, cin, endl instead of that. INPUT / OUTPUT : CREATE OWN VECTOR: Create own vector class to represent…