Saturday, February 20, 2021

Source Code


// C program for the above approach 
#include <stdio.h> 

  
// N vertices and M Edges 

int N, M; 

  
// Function to create Adjacency Matrix 

void createAdjMatrix(int Adj[][N + 1], 

                     int arr[][2]) 

  

    // Initialise all value to this 

    // Adjacency list to zero 

    for (int i = 0; i < N + 1; i++) { 

  

        for (int j = 0; j < N + 1; j++) { 

            Adj[i][j] = 0; 

        } 

    } 

  

    // Traverse the array of Edges 

    for (int i = 0; i < M; i++) { 

  

        // Find X and Y of Edges 

        int x = arr[i][0]; 

        int y = arr[i][1]; 

  

        // Update value to 1 

        Adj[x][y] = 1; 

        Adj[y][x] = 1; 

    } 

  
// Function to print the created 
// Adjacency Matrix 

void printAdjMatrix(int Adj[][N + 1]) 

  

    // Traverse the Adj[][] 

    for (int i = 1; i < N + 1; i++) { 

        for (int j = 1; j < N + 1; j++) { 

  

            // Print the value at Adj[i][j] 

            printf("%d ", Adj[i][j]); 

        } 

        printf("\n"); 

    } 

  
// Driver Code 

int main() 

  

    // Number of vertices 

    N = 5; 

  

    // Given Edges 

    int arr[][2] 

        = { { 1, 2 }, { 2, 3 },  

            { 4, 5 }, { 1, 5 } }; 

  

    // Number of Edges 

    M = sizeof(arr) / sizeof(arr[0]); 

  

    // For Adjacency Matrix 

    int Adj[N + 1][N + 1]; 

  

    // Function call to create 

    // Adjacency Matrix 

    createAdjMatrix(Adj, arr); 

  

    // Print Adjacency Matrix 

    printAdjMatrix(Adj); 

  

    return 0; 

Rashmirathi

Wednesday, November 13, 2019

How to Format Windows 10

1
Open your Start menu. Click the Windows icon in the lower-left corner of your screen to open your Start menu.

2
Click Settings on the Start menu. This option is listed next to a gear icon on the menu. It will open your Settings menu in a new window.
3
Click the Update & Security option. This option looks like a blue, revolving arrow icon on the Settings menu.

4
Click Recovery on the left sidebar. Your update and security options are listed on a navigation menu on the left-hand side of the window. Click the Recovery option here.

5
Click the Get started button under "Reset This PC." This option will allow you to reinstall the Windows operating system on your computer, and reset your entire system.
6
Click Remove everything. This option will delete all the your personal files, apps, and settings without saving any backups.
If you want to backup your personal files, select Keep my files here. This will remove all your apps and settings in the reset, but also make sure to backup and recover all your files, such photos, music, and documents.

7
Click Remove files and clean the drive. This option will make sure to delete everything on your computer to implement a complete and thorough system reset.
If you're short on time, consider selecting Just remove my files here. Keep in mind that this option is less secure, and will not delete all the data on your drive.

8
Click Next in the "Warning" window. This will confirm you want to reset your computer, and allow you to start the reset on the next page.

9
Click the Reset button in the "Ready to reset this PC" window. Your computer will automatically restart, and start the system reset process.
Here, your computer will reinstall the Windows 10 operating system to format your entire system.

10
Wait for the system reset to finish. Depending on the size of your drive, your files, and your computer's processing power, resetting may take anywhere from a few minutes to a few hours.
When the reset is complete, you'll see the "Choose an option" screen.

11
Click the Continue button on the "Choose an option" page. This will continue to Windows. 12
You can start using your formatted computer.

Natural Scene

Natural Scene 

Friday, November 8, 2019

What is technology?

Application of knowledge to the practical aims of human life or to changing and manipulating the human environment. Technology includes the use of materials, tools, techniques, and sources of power to make life easier or more pleasant and work more productive. Whereas science is concerned with how and why things happen, technology focuses on making things happen

Thursday, November 7, 2019