When faced with a difficult problem in mathematics, it often helps to draw a picture. If the problem involves a discrete collection of interrelated objects, it is natural to sketch the objects and draw lines between them to indicate the relationships. A graph (composed of dots called vertices connected by lines or curves called edges) is the mathematical version of such a sketch. The edges of a graph may have arrows on them; in this case, the graph is called a directed graph. When we draw a graph, it doesn’t really matter where we put the vertices or whether we draw the edges as curved or straight; rather, what matters is whether or not two given vertices are connected by an edge (or edges). The degree of a vertex is the number of edges incident to it (i.e., the number of times an edge touches it). This is different than the number of edges touching it, because an edge my form a loop; for instance, vertex ? in graph ? (above) has degree 5. In a directed graph, we can speak of the indegree (the number of edges coming in to the vertex) and the outdegree (the number of edges going out). Vertex ? in graph ? (above) has indegree 1 and outdegree 2. For the following directed graph, let ? = {?,?,?, ?, ?} and let ? = {?, ?, ?, ?}. For each definition of ? below, determine if ? is a function. If it is a function, state its domain and codomain in the form “?:? → ?” and give a table of values that lists each element ? of the domain along with the corresponding element ?(?) of the codomain. If the given ? is not a function, explain why not. a. If ? is an edge, then ?(?) is the vertex that the edge points to. b. If ? is a vertex, then ?(?) is the edge that points to it. c. If ? is a vertex, then ?(?) is the indegree of ?. d. If ? is a natural number, then ?(?) is the vertex whose outdegree is ?. e. If ? is a subset of ? of cardinality 2, then ?(?) is the edge connecting the two vertices in ?.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

When faced with a difficult problem in mathematics, it often helps to draw a picture. If the problem involves a discrete collection of interrelated objects, it is natural to sketch the objects and draw lines between them to indicate the relationships. A graph (composed of dots called vertices connected by lines or curves called edges) is the mathematical version of such a sketch. The edges of a graph may have arrows on them; in this case, the graph is called a directed graph.

When we draw a graph, it doesn’t really matter where we put the vertices or whether we draw the edges as curved or straight; rather, what matters is whether or not two given vertices are connected by an edge (or edges). The degree of a vertex is the number of edges incident to it (i.e., the number of times an edge touches it). This is different than the number of edges touching it, because an edge my form a loop; for instance, vertex ? in graph ? (above) has degree 5. In a directed graph, we can speak of the indegree (the number of edges coming in to the vertex) and the outdegree (the number of edges going out). Vertex ? in graph ? (above) has indegree 1 and outdegree 2.

For the following directed graph, let ? = {?,?,?, ?, ?} and let ? = {?, ?, ?, ?}.

For each definition of ? below, determine if ? is a function. If it is a function, state its domain and codomain in the form “?:? → ?” and give a table of values that lists each element ? of the domain along with the corresponding element ?(?) of the codomain. If the given ? is not a function, explain why not.

a. If ? is an edge, then ?(?) is the vertex that the edge points to.

b. If ? is a vertex, then ?(?) is the edge that points to it.

c. If ? is a vertex, then ?(?) is the indegree of ?.

d. If ? is a natural number, then ?(?) is the vertex whose outdegree is ?. e. If ? is a subset of ? of cardinality 2, then ?(?) is the edge connecting the two vertices in ?.

When faced with a difficult problem in mathematics, it often helps to draw a picture. If the
problem involves a discrete collection of interrelated objects, it is natural to sketch the objects
and draw lines between them to indicate the relationships. A graph (composed of dots called
vertices connected by lines or curves called edges) is the mathematical version of such a sketch.
The edges of a graph may have arrows on them; in this case, the graph is called a directed
graph.
G
Figure 1. G represents a directed graph, whereas H represents an undirected
graph.
When we draw a graph, it doesn't really matter where we put the vertices or whether we draw
the edges as curved or straight; rather, what matters is whether or not two given vertices are
connected by an edge (or edges). The degree of a vertex is the number of edges incident to it
(i.e., the number of times an edge touches it). This is different than the number of edges
touching it, because an edge my form a loop; for instance, vertex x in graph H (above) has
degree 5. In a directed graph, we can speak of the indegree (the number of edges coming in to
the vertex) and the outdegree (the number of edges going out). Vertex a in graph G (above)
has indegree 1 and outdegree 2.
5. For the following directed graph, let E = {I,J,K,L, M} and let V = {a, b, c, d}.
a
J
M
b
K
For each definition of f below, determine if f is a function. If it is a function, state its
domain and codomain in the form "f:X → Y" and give a table of values that lists each
element x of the domain along with the corresponding element f (x) of the codomain.
If the given f is not a function, explain why not.
a. If x is an edge, then f (x) is the vertex that the edge points to.
b. If x is a vertex, then f (x) is the edge that points to it.
c. If x is a vertex, then f(x) is the indegree of x.
d. If x is a natural number, then f (x) is the vertex whose outdegree is x.
e. If x is a subset of V of cardinality 2, then f (x) is the edge connecting the two
vertices in x.
Transcribed Image Text:When faced with a difficult problem in mathematics, it often helps to draw a picture. If the problem involves a discrete collection of interrelated objects, it is natural to sketch the objects and draw lines between them to indicate the relationships. A graph (composed of dots called vertices connected by lines or curves called edges) is the mathematical version of such a sketch. The edges of a graph may have arrows on them; in this case, the graph is called a directed graph. G Figure 1. G represents a directed graph, whereas H represents an undirected graph. When we draw a graph, it doesn't really matter where we put the vertices or whether we draw the edges as curved or straight; rather, what matters is whether or not two given vertices are connected by an edge (or edges). The degree of a vertex is the number of edges incident to it (i.e., the number of times an edge touches it). This is different than the number of edges touching it, because an edge my form a loop; for instance, vertex x in graph H (above) has degree 5. In a directed graph, we can speak of the indegree (the number of edges coming in to the vertex) and the outdegree (the number of edges going out). Vertex a in graph G (above) has indegree 1 and outdegree 2. 5. For the following directed graph, let E = {I,J,K,L, M} and let V = {a, b, c, d}. a J M b K For each definition of f below, determine if f is a function. If it is a function, state its domain and codomain in the form "f:X → Y" and give a table of values that lists each element x of the domain along with the corresponding element f (x) of the codomain. If the given f is not a function, explain why not. a. If x is an edge, then f (x) is the vertex that the edge points to. b. If x is a vertex, then f (x) is the edge that points to it. c. If x is a vertex, then f(x) is the indegree of x. d. If x is a natural number, then f (x) is the vertex whose outdegree is x. e. If x is a subset of V of cardinality 2, then f (x) is the edge connecting the two vertices in x.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Polynomial time
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education