Posts

Showing posts from January, 2017

How to Install LAMP server in ubuntu through terminal

Image
how    to install php , mysql and Apache server LAMP L-linux(probably you already having linux) A-Apache M-mysql p-php Installing LAMP On Ubuntu In this guide I will show you how to install a LAMP system. LAMP stands for Linux, Apache, MySQL, PHP. The guide is intended to help those who have very little knowlegde of using Linux. Install Apache To start off we will install Apache. Open up the Terminal (Applications > Accessories > Terminal). (Ctrl+T also works) Copy/Paste the following line of code into Terminal and then press enter: sudo apt-get install apache2 The Terminal will then ask you for you're password, type it and then press enter. Testing Apache To make sure everything installed correctly we will now test Apache to ensure it is working properly. Open up any web browser and then enter the following into the web address: http://localhost/   if this page opens it means apache is installed and working properly Insta

Tree

Minimum Spanning Tree Algorithms Definition:- A tree is a  connected  graph  without cycles . Properties of Trees ° A graph is a tree if and only if there is  one and only one path  joining any two of its vertices. ° A  connected  graph is a tree if and only if every one of its edges is a  bridge . ° A  connected  graph is a tree if and only if it has  N  vertices and  N; 1 edges . Definitions:- ° A  subgraph  that  spans  (reaches out to )  all  vertices of a graph is called a  spanning subgraph . ° A subgraph that is  a tree and that spans  (reaches out to ) all vertices of the original graph is called a  spanning tree . ° Among all the spanning trees of a weighted and connected graph, the one (possibly more) with the least total weight is called a  minimum spanning tree (MST) . Kruskal's Algorithm Step 1 Find the cheapest edge in the graph (if there is more than one, pick one at random). Mark it with any given colour, say  red . Step 2 Find the cheap

C++ programming BBIT MAKAUT

Program Name:-Write a c++ program to print Hello world. Program source code:- #include<iostream> using namespace std; int main(){ cout<<"Hello world."; } OUTPUT:- Hello world. Program Name:-Write a c++ program to add two integer number. Source code:- #include<iostream> int main() { int a,b,c; std::cout<<"Enter two numbers for addition\n"; std::cin>>a>>b; c=a+b; std::cout <<"Sum of entered numbers = " << c; } OUTPUT:- Enter two numbers for addition 23 45 Sum of entered numbers = 68 Program name:-write a c++ program to find area and circumference of circle. Source code:- #include<iostream> using namespace std;