a) Design an adjacency Matrix of the alphabets of your full name(USAMA ZAFAR). In accordance with the following conditions: • If your name has repeated characters (s.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) b) Sketch an undirected graph of the above designed adjaceney matrix.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question
Q.No.2:
a) Design an adjacency Matrix of the alphabets of your full name(USAMA ZAFAR). In accordance
with the following conditions:
• If your name has repeated characters (sg, 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)
b) Sketch an undirected graph of the above designed adjacency matrix.
Transcribed Image Text:Q.No.2: a) Design an adjacency Matrix of the alphabets of your full name(USAMA ZAFAR). In accordance with the following conditions: • If your name has repeated characters (sg, 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) b) Sketch an undirected graph of the above designed adjacency matrix.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Recurrence Relation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr