Answered step by step
Verified Expert Solution
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:
- 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)
- Sketch an undirected graph of the above designed adjacency matrix.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started