Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SUBJECT: DATA STRUCTURES AND ALGORITHM NOTE: Please Use Simple Coding, Not Too Complexed, Please do write the code in Dev C++ Compiler. Q.No.2: Design an

SUBJECT: DATA STRUCTURES AND ALGORITHM

NOTE: Please Use Simple Coding, Not Too Complexed, Please do write the code in Dev C++ Compiler.

Q.No.2:

  1. Design an adjacency Matrix of the alphabets of your full name. In accordance with the following conditions:
  • If your name has repeated characters (e.g. character E, 2 times) then you will consider only 1 time.
  • If your Name contains both G and S, then there will be an edge between them and one additional edge from W to each if W is also in your name.
  • If N is the alphabet in your name, it will have an edge to A and S if it available in your name.
  • If P is available then it will have an edge with L if it is available.
  • If there is a blank space in full Name then it will be represented by _, and it must have an edge with all alphabets.

(Note: Place on in 1 for Edge and 0 for No Edge)

  1. Sketch an undirected graph of the above designed adjacency matrix.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions