SlideShare a Scribd company logo
Discrete Mathematics
Final Homework
Samet Öztoprak
2601140342
May 6, 2015
1) Find the number of vertices, the number of edges, and the degree of each vertex in the given
undirected graphs. Identify all isolated and pendant vertices.
a)
Tips:
An isolated vertex is a vertex with degree zero.
A leaf vertex (also pendant vertex) is a vertex with degree one.
The number of vertices, the number of edges
Numbers
Vertices 6
Edges 6
The degree of each vertex
Node Degree of the vertex
a 2
b 4
c 1
d 0
e 2
f 3
isolated vertices d
pendant vertices c
b)
The number of vertices, the number of edges
Numbers
Vertices 9
Edges 12
The degree of each vertex
Node Degree of the vertex
a 3
b 2
c 4
d 0
e 6
f 0
g 4
h 2
ı 3
isolated vertices d,f
pendant vertices There is no pendant vertices.
2) Which graphs shown in Figure have an Euler path?
Tip:
An Euler path is a path that uses every edge of a graph exactly once.
An Euler path starts and ends at different vertices.
A B
CD
A
B C D
EFG A B
C
DE
F
G
Euler Path : BDABC Euler Path : DEFGABCDFCGB Euler Path : there is no euler path.
3) Which of the simple graphs in have a Hamilton circuit or, if not, a Hamilton path?
Tips:
In Hamilton paths and Hamilton circuits, the game is to find paths and circuits that include every
vertex of the graph once and only once.
 A Hamilton path in a graph is a path that includes each vertex of the graph once and only
once.
 A Hamilton circuit is a circuit that includes each vertex of the graph once and only once. (At
the end, of course, the circuit must return to the starting vertex.)
Note that if a graph has a Hamilton circuit then it also has a Hamilton path.
A B
C
D
E
A B
CD
A B
CD E F
G
Hamilton circuit : BAEDCB Hamilton circuit : No Hamilton circuit : No
Hamilton path : BAEDCB Hamilton path : DCBA Hamilton path : No
4) Draw the given planar graphs without any crossings.
a) b)
Tips:
A graph is planar if it can be drawn in two-dimensional space with no two of its edges
crossing. Such a drawing of a planar graph is called a plane drawing.
A B
5) Determine whether the given graphs are planar. If so, draw it so that no edges cross.
a) b)
a) No,it is not a planar graph.
b) Yes.
F
E
D
A
C
B
6) Answer these questions about the rooted tree illustrated.
Question Answer
Which vertex is the root a
Which vertices are internal a,b,c,d,f,h,j,g,q,t
Which vertices are leaves e,g,i,k,l,m,n,o,p,r,s,u
Which vertices are children of j q,r
Which vertex is the parent of h c
Which vertices are siblings of o p
Which vertices are ancestors of m f,b,a
Which vertices are descendants of b e,f,l,m,n
i)Is it a full m-ary tree for some positive integer m
Definition:
The tree is called a full m -ary tree if every internal vertex has exactly m children.
Example : If m = 2, it is called a binary tree.
Accoring to definition f and d has 3 children therefore we can obviously say that
The tree is not full m-ary tree.
j)What is the level of each vertex of the rooted tree
Levels Vertex
Level 0 a
Level 1 b,c,d
Level 2 e,f,g,h,i,j,k
Level 3 l,m,n,o,p,q,r
Level 4 s,t
Level 5 u
7) Find the output of the given circuit.
Output = (xy)' + (z'+x)
x y z (xy)' + (z'+x)
0 0 0 1
1 0 0 1
0 1 0 1
1 1 0 1
0 0 1 1
1 0 1 1
0 1 1 1
1 1 1 1
8) Let G = (V, T, S, P) be the phrase-structure grammar with V = {0, 1,A,B, S}, T = {0, 1}
and set of productions P consisting of
S → 0A => 𝑆1 → 0A
S → 1A => 𝑆2 → 1A
A → 0B => 𝐴1 → 0B
B → 1A => 𝐵1 → 1A
B → 1. => 𝐵2 → 1.
a) Show that 10101 belongs to the language generated by G.
𝑆2 1A
𝐴1 10B
𝐵1 101A
𝐴1 1010B
𝐵2 10101
10101 belongs to the language.
b) Show that 10110 does not belong to the language generated by G.
𝑆2 1A
𝐴1 10B
𝐵1 101A
There is no production A that will produce 1.
Therefore, 10110 in not in the language of G.
c) What is the language generated by G?
This means that the language is (0+1)01(01)∗.
9) Determine whether the string 01001 is in each of these sets.
a) {0, 1}*
{0,1}* is the set that contains all bit strings
Therefore ,01001 is in {0,1}*,
b) {0}*{10}{1}*
{0}*{10}{1}* is the set that allows consecutive 0s only beginnig of the string.
Therefore ,01001 is not in {0}*{10}{1}*,
c) {010}* {0}* {1}
01001 is equvalent to {010}* {0}* {1}
Therefore ,01001 is in {010}* {0}* {1}
d) {010, 011} {00, 01}
01001 is equvalent to {010}{01}
Therefore ,01001 is in {010, 011} {00, 01}
e) {00} {0}*{01}
{00} {0}*{01} is the set that requires the string to start with 00
Therefore ,01001 is not in {00} {0}*{01}
f ) {01}*{01}*
{01}*{01}* is the set that requires the string two 0s
Therefore ,01001 is not in {01}*{01}*
10) Find the language recognized by the given deterministic finite-state automaton.
We have two final states: s1.
State s1 can be reached using {1} and we stay in s1 as long as we have 0 or 1 as input.
Therefore language recognized by s1 is {1}{0,1}*
State s1 can be reached using {0}{1}*{0}{0,1}*
L(r) = { λ,1(0,1)*,01*0(0,1)*}
11) Describe inwords the strings in each of these regular sets.
a) 001*
b) (01)*
c) 01 ∪ 001*
d) 0(11 ∪ 0)*
e) (101*)*
f ) (0*∪1)11
Tips:
∅ represents the empty set, that is, the set with no strings;
λ represents the set {λ}, which is the set containing the empty string;
x represents the set {x} containing the string with one symbol x;
(AB) represents the concatenation of the sets represented by A and by B;
(A ∪ B) represents the union of the sets represented by A and by B;
A* represents the Kleene closure of the set represented by A.
a) Any number start by 00 followed by any number of 1s (including no ones)
b) Any number of copies of 01 (including the null string)
c) The string is 01 or the number start by 00 followed by any number of 1s
d) Any string start by 0 followed by any number of 11 or 0 (including empty)
e) λ or any number of copies of 10 followed by any number of 1s
f) Any number start by 1 or any number of copies of 0 that ends with 11

More Related Content

What's hot

Para Mufassirun dan Kitab Tafsir Terkenal
Para Mufassirun dan Kitab Tafsir TerkenalPara Mufassirun dan Kitab Tafsir Terkenal
Para Mufassirun dan Kitab Tafsir Terkenal
Ratih Aini
 
19360572 alquran-bahasa-arab
19360572 alquran-bahasa-arab19360572 alquran-bahasa-arab
19360572 alquran-bahasa-arabAhmad Royani
 
konsep asas islam
konsep asas islamkonsep asas islam
konsep asas islam
Normurni Mohamad
 
36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan
36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan
36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan
Gua Syed Al Yahya
 
Salah Faham Terhadap Islam
Salah Faham Terhadap IslamSalah Faham Terhadap Islam
Ijtihad dan mujtahid
Ijtihad dan mujtahidIjtihad dan mujtahid
Ijtihad dan mujtahid
Ahmad Sarwat
 
Falsafah
FalsafahFalsafah
Falsafah
f78cempaka
 
IMAM ABU HANIFAH
IMAM ABU HANIFAHIMAM ABU HANIFAH
IMAM ABU HANIFAH
kkqsmkta
 
Hadits Shahih dan Hadits Hasan
Hadits Shahih dan Hadits HasanHadits Shahih dan Hadits Hasan
Hadits Shahih dan Hadits HasanFakhri Cool
 
Ppt urutan surat dan ayat al qur’an asl iiiiiiiiii
Ppt urutan surat dan ayat al qur’an asl iiiiiiiiiiPpt urutan surat dan ayat al qur’an asl iiiiiiiiii
Ppt urutan surat dan ayat al qur’an asl iiiiiiiiii
Khusnul Kotimah
 
Baha'i ajaran
Baha'i ajaranBaha'i ajaran
Baha'i ajaran
syafiq1719
 
PEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARI
PEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARIPEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARI
PEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARI
Juhdi Heryadi
 
1008461 15 rabbaniyyah
1008461 15 rabbaniyyah1008461 15 rabbaniyyah
1008461 15 rabbaniyyah
Mufakkirah Sumayyah
 
Tafsir Quran Karim Karya Mahmud Yunus pdf
Tafsir Quran Karim Karya Mahmud Yunus pdfTafsir Quran Karim Karya Mahmud Yunus pdf
Tafsir Quran Karim Karya Mahmud Yunus pdf
RulHas SulTra
 
Tarikh tasyrik 5
Tarikh tasyrik 5Tarikh tasyrik 5
Tarikh tasyrik 5
mas karebet
 
6. ta'arudh tarjih nasakh
6. ta'arudh tarjih nasakh6. ta'arudh tarjih nasakh
6. ta'arudh tarjih nasakhMarhamah Saleh
 
7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat
7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat
7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat
Paradigma Ibrah Sdn. Bhd.
 
PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...
PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...
PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...
Mchairulbanin
 

What's hot (20)

Para Mufassirun dan Kitab Tafsir Terkenal
Para Mufassirun dan Kitab Tafsir TerkenalPara Mufassirun dan Kitab Tafsir Terkenal
Para Mufassirun dan Kitab Tafsir Terkenal
 
19360572 alquran-bahasa-arab
19360572 alquran-bahasa-arab19360572 alquran-bahasa-arab
19360572 alquran-bahasa-arab
 
konsep asas islam
konsep asas islamkonsep asas islam
konsep asas islam
 
36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan
36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan
36 hadits hadits palsu dan lemah yang sering disebut di bulan ramadhan
 
Salah Faham Terhadap Islam
Salah Faham Terhadap IslamSalah Faham Terhadap Islam
Salah Faham Terhadap Islam
 
Ijtihad dan mujtahid
Ijtihad dan mujtahidIjtihad dan mujtahid
Ijtihad dan mujtahid
 
Falsafah
FalsafahFalsafah
Falsafah
 
IMAM ABU HANIFAH
IMAM ABU HANIFAHIMAM ABU HANIFAH
IMAM ABU HANIFAH
 
Hadits Shahih dan Hadits Hasan
Hadits Shahih dan Hadits HasanHadits Shahih dan Hadits Hasan
Hadits Shahih dan Hadits Hasan
 
Ppt urutan surat dan ayat al qur’an asl iiiiiiiiii
Ppt urutan surat dan ayat al qur’an asl iiiiiiiiiiPpt urutan surat dan ayat al qur’an asl iiiiiiiiii
Ppt urutan surat dan ayat al qur’an asl iiiiiiiiii
 
Baha'i ajaran
Baha'i ajaranBaha'i ajaran
Baha'i ajaran
 
Zaman kegemilangan
Zaman kegemilanganZaman kegemilangan
Zaman kegemilangan
 
PEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARI
PEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARIPEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARI
PEMBAHARUAN PEMIKIRAN PENDIDIKAN MENURUT HADRATUSYEKH KH.HASYIM ASY'ARI
 
Bab 3. konsep ibadat
Bab 3. konsep ibadatBab 3. konsep ibadat
Bab 3. konsep ibadat
 
1008461 15 rabbaniyyah
1008461 15 rabbaniyyah1008461 15 rabbaniyyah
1008461 15 rabbaniyyah
 
Tafsir Quran Karim Karya Mahmud Yunus pdf
Tafsir Quran Karim Karya Mahmud Yunus pdfTafsir Quran Karim Karya Mahmud Yunus pdf
Tafsir Quran Karim Karya Mahmud Yunus pdf
 
Tarikh tasyrik 5
Tarikh tasyrik 5Tarikh tasyrik 5
Tarikh tasyrik 5
 
6. ta'arudh tarjih nasakh
6. ta'arudh tarjih nasakh6. ta'arudh tarjih nasakh
6. ta'arudh tarjih nasakh
 
7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat
7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat
7 "Mubin" Surah Yasin : Munasabah dan Siyaq Ayat
 
PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...
PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...
PPT Kelompok 5 PAI Bab 5 (Meneladani Peran Ulama Penyebar Ajaran Islam di Ind...
 

Viewers also liked

34717062 proverbs-29-commentary
34717062 proverbs-29-commentary34717062 proverbs-29-commentary
34717062 proverbs-29-commentary
GLENN PEASE
 
Reglamento de la universidad popular del cesar-jhon parra
Reglamento de la universidad popular del cesar-jhon parraReglamento de la universidad popular del cesar-jhon parra
Reglamento de la universidad popular del cesar-jhon parra
Jhon Parra Payares
 
Ea ensayo luis_fra
Ea ensayo luis_fraEa ensayo luis_fra
Ea ensayo luis_fra
Luis Reyes
 
Normas de netiqueta y cuestionario
Normas de netiqueta y cuestionarioNormas de netiqueta y cuestionario
Normas de netiqueta y cuestionario
Yuyisangelica
 
THÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNG
THÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNGTHÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNG
THÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNG
luatsubinhduong
 
Presentación Eurofit prueba equilibrio
Presentación Eurofit prueba equilibrioPresentación Eurofit prueba equilibrio
Presentación Eurofit prueba equilibrio
colebonar2015
 
Ea ensayo isabelaj
Ea ensayo isabelajEa ensayo isabelaj
Ea ensayo isabelaj
IsaAlbaJ
 
English spelling rules
English spelling rulesEnglish spelling rules
English spelling rules
wasi Abbas
 
Creating the life you want
Creating the life you wantCreating the life you want
Creating the life you want
a1z
 
Exam 1
Exam 1Exam 1
Danh sách học sinh mượn sách quá hạn lớp 12 th
Danh sách học sinh mượn sách quá hạn lớp 12 thDanh sách học sinh mượn sách quá hạn lớp 12 th
Danh sách học sinh mượn sách quá hạn lớp 12 thThuvien Nqd
 
Location recognisance
Location recognisanceLocation recognisance
Location recognisanceChloeKyri
 
Organizadores+graficos (1) (1)
Organizadores+graficos (1) (1)Organizadores+graficos (1) (1)
Organizadores+graficos (1) (1)
Paula Pulido
 

Viewers also liked (14)

34717062 proverbs-29-commentary
34717062 proverbs-29-commentary34717062 proverbs-29-commentary
34717062 proverbs-29-commentary
 
Prezentacja przemyśl
Prezentacja przemyślPrezentacja przemyśl
Prezentacja przemyśl
 
Reglamento de la universidad popular del cesar-jhon parra
Reglamento de la universidad popular del cesar-jhon parraReglamento de la universidad popular del cesar-jhon parra
Reglamento de la universidad popular del cesar-jhon parra
 
Ea ensayo luis_fra
Ea ensayo luis_fraEa ensayo luis_fra
Ea ensayo luis_fra
 
Normas de netiqueta y cuestionario
Normas de netiqueta y cuestionarioNormas de netiqueta y cuestionario
Normas de netiqueta y cuestionario
 
THÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNG
THÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNGTHÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNG
THÀNH LẬP DOANH NGHIỆP RẺ NHẤT DĨ AN BÌNH DƯƠNG
 
Presentación Eurofit prueba equilibrio
Presentación Eurofit prueba equilibrioPresentación Eurofit prueba equilibrio
Presentación Eurofit prueba equilibrio
 
Ea ensayo isabelaj
Ea ensayo isabelajEa ensayo isabelaj
Ea ensayo isabelaj
 
English spelling rules
English spelling rulesEnglish spelling rules
English spelling rules
 
Creating the life you want
Creating the life you wantCreating the life you want
Creating the life you want
 
Exam 1
Exam 1Exam 1
Exam 1
 
Danh sách học sinh mượn sách quá hạn lớp 12 th
Danh sách học sinh mượn sách quá hạn lớp 12 thDanh sách học sinh mượn sách quá hạn lớp 12 th
Danh sách học sinh mượn sách quá hạn lớp 12 th
 
Location recognisance
Location recognisanceLocation recognisance
Location recognisance
 
Organizadores+graficos (1) (1)
Organizadores+graficos (1) (1)Organizadores+graficos (1) (1)
Organizadores+graficos (1) (1)
 

Similar to Discrete mathematic answers of questions

Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008
MD Kutubuddin Sardar
 
Nbhm m. a. and m.sc. scholarship test 2005
Nbhm m. a. and m.sc. scholarship test 2005Nbhm m. a. and m.sc. scholarship test 2005
Nbhm m. a. and m.sc. scholarship test 2005
MD Kutubuddin Sardar
 
Imo2012 sl
Imo2012 slImo2012 sl
Imo2012 sl
Christos Loizos
 
Nbhm m. a. and m.sc. scholarship test 2006
Nbhm m. a. and m.sc. scholarship test 2006Nbhm m. a. and m.sc. scholarship test 2006
Nbhm m. a. and m.sc. scholarship test 2006
MD Kutubuddin Sardar
 
topologicalsort-using c++ as development language.pptx
topologicalsort-using c++ as development language.pptxtopologicalsort-using c++ as development language.pptx
topologicalsort-using c++ as development language.pptx
janafridi251
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
hijigaf
 
Nbhm m. a. and m.sc. scholarship test 2011
Nbhm m. a. and m.sc. scholarship test 2011Nbhm m. a. and m.sc. scholarship test 2011
Nbhm m. a. and m.sc. scholarship test 2011
MD Kutubuddin Sardar
 
Linear Algebra Assignment help
Linear Algebra Assignment helpLinear Algebra Assignment help
Linear Algebra Assignment help
Maths Assignment Help
 
Cs6660 compiler design november december 2016 Answer key
Cs6660 compiler design november december 2016 Answer keyCs6660 compiler design november december 2016 Answer key
Cs6660 compiler design november december 2016 Answer key
appasami
 
Cs6702 graph theory and applications Anna University question paper apr may 2...
Cs6702 graph theory and applications Anna University question paper apr may 2...Cs6702 graph theory and applications Anna University question paper apr may 2...
Cs6702 graph theory and applications Anna University question paper apr may 2...
appasami
 
Topological sort
Topological sortTopological sort
Topological sort
jabishah
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
Statistics Assignment Help
 
Nbhm m. a. and m.sc. scholarship test 2012 with answer key
Nbhm m. a. and m.sc. scholarship test 2012 with answer keyNbhm m. a. and m.sc. scholarship test 2012 with answer key
Nbhm m. a. and m.sc. scholarship test 2012 with answer key
MD Kutubuddin Sardar
 
Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007
MD Kutubuddin Sardar
 
Nbhm m. a. and m.sc. scholarship test 2009
Nbhm m. a. and m.sc. scholarship test 2009Nbhm m. a. and m.sc. scholarship test 2009
Nbhm m. a. and m.sc. scholarship test 2009
MD Kutubuddin Sardar
 
GATE Mathematics Paper-2000
GATE Mathematics Paper-2000GATE Mathematics Paper-2000
GATE Mathematics Paper-2000
Dips Academy
 
Imo2009 sl
Imo2009 slImo2009 sl
Imo2009 sl
Christos Loizos
 

Similar to Discrete mathematic answers of questions (20)

Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008
 
Nbhm m. a. and m.sc. scholarship test 2005
Nbhm m. a. and m.sc. scholarship test 2005Nbhm m. a. and m.sc. scholarship test 2005
Nbhm m. a. and m.sc. scholarship test 2005
 
Imo2012 sl
Imo2012 slImo2012 sl
Imo2012 sl
 
Imo 2012
Imo 2012 Imo 2012
Imo 2012
 
Nbhm m. a. and m.sc. scholarship test 2006
Nbhm m. a. and m.sc. scholarship test 2006Nbhm m. a. and m.sc. scholarship test 2006
Nbhm m. a. and m.sc. scholarship test 2006
 
topologicalsort-using c++ as development language.pptx
topologicalsort-using c++ as development language.pptxtopologicalsort-using c++ as development language.pptx
topologicalsort-using c++ as development language.pptx
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
 
Nbhm m. a. and m.sc. scholarship test 2011
Nbhm m. a. and m.sc. scholarship test 2011Nbhm m. a. and m.sc. scholarship test 2011
Nbhm m. a. and m.sc. scholarship test 2011
 
Linear Algebra Assignment help
Linear Algebra Assignment helpLinear Algebra Assignment help
Linear Algebra Assignment help
 
Cs6660 compiler design november december 2016 Answer key
Cs6660 compiler design november december 2016 Answer keyCs6660 compiler design november december 2016 Answer key
Cs6660 compiler design november december 2016 Answer key
 
Cs6702 graph theory and applications Anna University question paper apr may 2...
Cs6702 graph theory and applications Anna University question paper apr may 2...Cs6702 graph theory and applications Anna University question paper apr may 2...
Cs6702 graph theory and applications Anna University question paper apr may 2...
 
Topological sort
Topological sortTopological sort
Topological sort
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
Nbhm m. a. and m.sc. scholarship test 2012 with answer key
Nbhm m. a. and m.sc. scholarship test 2012 with answer keyNbhm m. a. and m.sc. scholarship test 2012 with answer key
Nbhm m. a. and m.sc. scholarship test 2012 with answer key
 
Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007
 
Imo 2016
Imo 2016 Imo 2016
Imo 2016
 
Nbhm m. a. and m.sc. scholarship test 2009
Nbhm m. a. and m.sc. scholarship test 2009Nbhm m. a. and m.sc. scholarship test 2009
Nbhm m. a. and m.sc. scholarship test 2009
 
GATE Mathematics Paper-2000
GATE Mathematics Paper-2000GATE Mathematics Paper-2000
GATE Mathematics Paper-2000
 
Imo2009 sl
Imo2009 slImo2009 sl
Imo2009 sl
 
Imo2009
Imo2009 Imo2009
Imo2009
 

Recently uploaded

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 

Recently uploaded (20)

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 

Discrete mathematic answers of questions

  • 1. Discrete Mathematics Final Homework Samet Öztoprak 2601140342 May 6, 2015 1) Find the number of vertices, the number of edges, and the degree of each vertex in the given undirected graphs. Identify all isolated and pendant vertices. a) Tips: An isolated vertex is a vertex with degree zero. A leaf vertex (also pendant vertex) is a vertex with degree one. The number of vertices, the number of edges Numbers Vertices 6 Edges 6 The degree of each vertex Node Degree of the vertex a 2 b 4 c 1 d 0 e 2 f 3 isolated vertices d pendant vertices c
  • 2. b) The number of vertices, the number of edges Numbers Vertices 9 Edges 12 The degree of each vertex Node Degree of the vertex a 3 b 2 c 4 d 0 e 6 f 0 g 4 h 2 ı 3 isolated vertices d,f pendant vertices There is no pendant vertices. 2) Which graphs shown in Figure have an Euler path? Tip: An Euler path is a path that uses every edge of a graph exactly once. An Euler path starts and ends at different vertices. A B CD A B C D EFG A B C DE F G Euler Path : BDABC Euler Path : DEFGABCDFCGB Euler Path : there is no euler path.
  • 3. 3) Which of the simple graphs in have a Hamilton circuit or, if not, a Hamilton path? Tips: In Hamilton paths and Hamilton circuits, the game is to find paths and circuits that include every vertex of the graph once and only once.  A Hamilton path in a graph is a path that includes each vertex of the graph once and only once.  A Hamilton circuit is a circuit that includes each vertex of the graph once and only once. (At the end, of course, the circuit must return to the starting vertex.) Note that if a graph has a Hamilton circuit then it also has a Hamilton path. A B C D E A B CD A B CD E F G Hamilton circuit : BAEDCB Hamilton circuit : No Hamilton circuit : No Hamilton path : BAEDCB Hamilton path : DCBA Hamilton path : No
  • 4. 4) Draw the given planar graphs without any crossings. a) b) Tips: A graph is planar if it can be drawn in two-dimensional space with no two of its edges crossing. Such a drawing of a planar graph is called a plane drawing. A B 5) Determine whether the given graphs are planar. If so, draw it so that no edges cross. a) b) a) No,it is not a planar graph. b) Yes. F E D A C B
  • 5. 6) Answer these questions about the rooted tree illustrated. Question Answer Which vertex is the root a Which vertices are internal a,b,c,d,f,h,j,g,q,t Which vertices are leaves e,g,i,k,l,m,n,o,p,r,s,u Which vertices are children of j q,r Which vertex is the parent of h c Which vertices are siblings of o p Which vertices are ancestors of m f,b,a Which vertices are descendants of b e,f,l,m,n i)Is it a full m-ary tree for some positive integer m Definition: The tree is called a full m -ary tree if every internal vertex has exactly m children. Example : If m = 2, it is called a binary tree. Accoring to definition f and d has 3 children therefore we can obviously say that The tree is not full m-ary tree. j)What is the level of each vertex of the rooted tree Levels Vertex Level 0 a Level 1 b,c,d Level 2 e,f,g,h,i,j,k Level 3 l,m,n,o,p,q,r Level 4 s,t Level 5 u
  • 6. 7) Find the output of the given circuit. Output = (xy)' + (z'+x) x y z (xy)' + (z'+x) 0 0 0 1 1 0 0 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 8) Let G = (V, T, S, P) be the phrase-structure grammar with V = {0, 1,A,B, S}, T = {0, 1} and set of productions P consisting of S → 0A => 𝑆1 → 0A S → 1A => 𝑆2 → 1A A → 0B => 𝐴1 → 0B B → 1A => 𝐵1 → 1A B → 1. => 𝐵2 → 1. a) Show that 10101 belongs to the language generated by G. 𝑆2 1A 𝐴1 10B 𝐵1 101A 𝐴1 1010B 𝐵2 10101 10101 belongs to the language. b) Show that 10110 does not belong to the language generated by G. 𝑆2 1A 𝐴1 10B 𝐵1 101A There is no production A that will produce 1. Therefore, 10110 in not in the language of G. c) What is the language generated by G? This means that the language is (0+1)01(01)∗.
  • 7. 9) Determine whether the string 01001 is in each of these sets. a) {0, 1}* {0,1}* is the set that contains all bit strings Therefore ,01001 is in {0,1}*, b) {0}*{10}{1}* {0}*{10}{1}* is the set that allows consecutive 0s only beginnig of the string. Therefore ,01001 is not in {0}*{10}{1}*, c) {010}* {0}* {1} 01001 is equvalent to {010}* {0}* {1} Therefore ,01001 is in {010}* {0}* {1} d) {010, 011} {00, 01} 01001 is equvalent to {010}{01} Therefore ,01001 is in {010, 011} {00, 01} e) {00} {0}*{01} {00} {0}*{01} is the set that requires the string to start with 00 Therefore ,01001 is not in {00} {0}*{01} f ) {01}*{01}* {01}*{01}* is the set that requires the string two 0s Therefore ,01001 is not in {01}*{01}* 10) Find the language recognized by the given deterministic finite-state automaton. We have two final states: s1. State s1 can be reached using {1} and we stay in s1 as long as we have 0 or 1 as input. Therefore language recognized by s1 is {1}{0,1}* State s1 can be reached using {0}{1}*{0}{0,1}* L(r) = { λ,1(0,1)*,01*0(0,1)*}
  • 8. 11) Describe inwords the strings in each of these regular sets. a) 001* b) (01)* c) 01 ∪ 001* d) 0(11 ∪ 0)* e) (101*)* f ) (0*∪1)11 Tips: ∅ represents the empty set, that is, the set with no strings; λ represents the set {λ}, which is the set containing the empty string; x represents the set {x} containing the string with one symbol x; (AB) represents the concatenation of the sets represented by A and by B; (A ∪ B) represents the union of the sets represented by A and by B; A* represents the Kleene closure of the set represented by A. a) Any number start by 00 followed by any number of 1s (including no ones) b) Any number of copies of 01 (including the null string) c) The string is 01 or the number start by 00 followed by any number of 1s d) Any string start by 0 followed by any number of 11 or 0 (including empty) e) λ or any number of copies of 10 followed by any number of 1s f) Any number start by 1 or any number of copies of 0 that ends with 11