Program to implement Bubble Sort in JAVA

What is Bubble Sort in Java?   Graphical representation of Bubble Sort:   An example of bubble sort. Starting from the beginning of the list, compare every adjacent pair, swap their position if they are not in the right order (the latter one is smaller than the former one). After each iteration, one less element (the … Read more

Program to implement Round Robin Algorithm in C

Let’s understand about Round Robin Algorithm or Round Robin Scheduling and how to implement this in C programming language.   What is Round Robin Algorithm / Round Robin Scheduling: Round-robin (RR) is one of the algorithms employed by process and network schedulers in computing. As the term is generally used, time slices (also known as … Read more

Program to swap two numbers in Python

Today we will write a program to swap two numbers in Python, we have two ways to do it: Swap using temporary variable. Swap without using temporary variable.   Program to swap two numbers in Python using temporary variable: a = 10 b = 20 print("before swapping\na=", a, " b=", b) temp = a a … Read more

How to set up MySQL Master-Slave Replication

What is MySQL Master-Slave Replication? MySQL Master-Slave replication is a process in which we have 2 servers one master and other slave, all the processing/data modifications are done on master and same are replicated on slave. So simply Slave is a copy of Master which helps in case failure of master or we require downtime … Read more

Program to find Inverse of Matrix C++

Today we are going to write a program to find the inverse of matrix C++, so let’s start with the what is the inverse of a matrix. Inverse of Matrix: For a square matrix A, the inverse is written A-1. When A is multiplied by A-1 the result is the identity matrix I. Non-square matrices … Read more