SlideShare a Scribd company logo
1 of 8
Download to read offline
UNIVERSIDAD FERMÍN TORO
VICE-RECTORADO ACADÉMICO
FACULTAD DE INGENIERÍA
ESCUELA DE COMPUTACIÓN
Ejercicios Propuestos
 Alumna: Verónica Torres
 C.I: V-28.399.477
 SAIA A
 Estructuras Discretas II
 Prof. Edecio Freitez
Ejercicio 1: grafo
Dado el siguiente grafo, encontrar:
a) Matriz de adyacencia
b) Matriz de incidencia
c) ¿Es conexo? Justifique su respuesta
d) ¿Es simple? Justifique su respuesta
e) ¿Es regular? Justifique su respuesta
f) ¿Es completo? Justifique su respuesta
g) Una cadena simple no elemental de grado 6
h) Un ciclo no simple de grado 5
i) Árbol generador aplicando el algoritmo constructor
j) Subgrafo parcial
k) Demostrar si es euleriano aplicando el algoritmo de Fleury
l) Demostrar si es hamiltoniano
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
SOLUCIÓN
Para a) Matriz de adyacencia
𝑀𝐴(𝑔) =
𝑉
𝑉
𝑉
𝑉
𝑉
𝑉
𝑉
𝑉 [
0 1 1 1 1 0 0 1
1 0 1 0 0 1 1 1
1 1 0 1 1 1 1 0
1 0 1 0 1 1 0 0
1 0 1 1 0 1 0 1
0 1 1 1 1 0 1 1
0 1 1 0 0 1 0 1
1 1 0 0 1 1 1 0]
Para b) Matriz de incidencia
𝑀𝑖(𝑔) =
𝑉
𝑉
𝑉
𝑉
𝑉
𝑉
𝑉
𝑉 [
1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 1 1 0 0
0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 1 1 0 1 0
0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 1]
Para c) ¿Es conexo? Justifique su respuesta
Si es conexo, ya que se cumple la condición de que todos los vértices están conectados a
través de al menos una trayectoria, es decir, existe una cadena para todos los vértices.
Para d) ¿Es simple? Justifique su respuesta
Efectivamente es un grafo simple, esto debido a que se cumple que no existen lazos y
tampoco hay más de una arista entre cada par de vértices.
Para e) ¿Es regular? Justifique su respuesta
No es un grafo regular ya que sus vértices tienen grados diferentes.
Nótese que:
𝑔𝑟(𝑉 ) = 5 → 𝐺𝑅𝐴𝐷𝑂 𝐷𝐸𝐿 𝑉É𝑅𝑇𝐼𝐶𝐸 1
𝑔𝑟(𝑉 ) = 6 → 𝐺𝑅𝐴𝐷𝑂 𝐷𝐸𝐿 𝑉É𝑅𝑇𝐼𝐶𝐸 3
⇒ 𝐶𝑜𝑚𝑜: 𝑔𝑟(𝑉 ) ≠ 𝑔𝑟(𝑉 ), 𝑒𝑙 𝑔𝑟𝑎𝑓𝑜 𝑛𝑜 𝑒𝑠 𝑟𝑒𝑔𝑢𝑙𝑎𝑟
Para f) ¿Es completo? Justifique su respuesta
No es un grafo completo porque hay vértices que no están conectadas por una arista.
Para g) Una cadena simple no elemental de grado 6
𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 0 , 𝑉 ]
Como se repite el vértice (𝑉 ) no es elemental.
Para h) Un ciclo no simple de grado 5
𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 9 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 ]
Es un ciclo no simple
Para i) Árbol generador aplicando el algoritmo constructor
Para j) Subgrafo parcial
Para k) Demostrar si es Euleriano aplicando el algoritmo de Fleury
Como el grado de 𝑉 = 5 (impar), como no existen vértices de grado impar el grafo no es
Euleriano.
Para l) Demostrar si es hamiltoniano
Ciclo que contiene todos los vértices
Tiene un ciclo hamiltoniano, por lo tanto esto quiere decir que el grafo es hamiltoniano.
Ejercicio 2: dígrafo
Dado el siguiente dígrafo
a) Encontrar matriz de conexión
b) ¿Es simple? Justifique su respuesta
c) Encontrar una cadena no simple no elemental de grado 5
d) Encontrar un ciclo simple
e) Demostrar si es fuertemente conexo utilizando la matriz de accesibilidad
f) Encontrar la distancia de v2 a los demás vértices utilizando el algoritmo de Dijkstra
Arista a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14
Pond. 2 3 4 3 2 3 4 1 4 3 2 2 4 3
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
SOLUCIÓN
Para a) Encontrar matriz de conexión
𝑴𝒄 =
𝑽𝟏
𝑽𝟐
𝑽𝟑
𝑽𝟒
𝑽𝟓
𝑽𝟔 [
𝟎 𝟏 𝟏 𝟎 𝟏 𝟎
𝟎 𝟎 𝟏 𝟏 𝟎 𝟏
𝟎 𝟎 𝟎 𝟏 𝟏 𝟎
𝟏 𝟎 𝟎 𝟎 𝟎 𝟏
𝟎 𝟏 𝟎 𝟏 𝟎 𝟏
𝟎 𝟎 𝟎 𝟎 𝟏 𝟎]
Para b) ¿Es simple? Justifique su respuesta
Si es un dígrafo simple ya que se puede observar que no tiene arcos ni lazos paralelos.
Para c) Encontrar una cadena no simple no elemental de grado 5
𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 0 , 𝑉 , 𝐴 , 𝑉 ]
Como se repite el vértice 𝑉 es una cadena no simple elemental de grado 5 por sus 5 arcos.
Para d) Encontrar un ciclo simple
𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴9 , 𝑉 ]
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
Para e) Demostrar si es fuertemente conexo utilizando la matriz de
accesibilidad
𝑴𝒄 =
𝑽𝟏
𝑽𝟐
𝑽𝟑
𝑽𝟒
𝑽𝟓
𝑽𝟔 [
𝟎 𝟏 𝟏 𝟎 𝟏 𝟎
𝟎 𝟎 𝟏 𝟏 𝟎 𝟏
𝟎 𝟎 𝟎 𝟏 𝟏 𝟎
𝟏 𝟎 𝟎 𝟎 𝟎 𝟏
𝟎 𝟏 𝟎 𝟏 𝟎 𝟏
𝟎 𝟎 𝟎 𝟎 𝟏 𝟎]
𝑴𝒄𝟐
= 𝑴𝒄. 𝑴𝒄
𝑴𝒄𝟐
=
𝑽𝟏
𝑽𝟐
𝑽𝟑
𝑽𝟒
𝑽𝟓
𝑽𝟔 [
𝟎 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟎 𝟎 𝟏 𝟏 𝟏
𝟏 𝟏 𝟎 𝟏 𝟎 𝟏
𝟎 𝟏 𝟏 𝟎 𝟏 𝟎
𝟏 𝟎 𝟏 𝟏 𝟏 𝟏
𝟎 𝟏 𝟎 𝟏 𝟎 𝟏]
𝑴𝒄𝟑
= 𝑴𝒄. 𝑴𝒄𝟐
𝑴𝒄𝟑
=
𝑽𝟏
𝑽𝟐
𝑽𝟑
𝑽𝟒
𝑽𝟓
𝑽𝟔 [
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟎 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟎 𝟏 𝟏 𝟏 𝟏]
𝑴𝒄𝟒
= 𝑴𝒄. 𝑴𝒄𝟑
𝑴𝒄𝟒
=
𝑽𝟏
𝑽𝟐
𝑽𝟑
𝑽𝟒
𝑽𝟓
𝑽𝟔 [
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏]
𝑉 𝑉 𝑉 𝑉 𝑉 𝑉
𝑴𝒄𝟓
= 𝑴𝒄. 𝑴𝒄𝟒
𝑴𝒄𝟓
=
𝑽𝟏
𝑽𝟐
𝑽𝟑
𝑽𝟒
𝑽𝟓
𝑽𝟔 [
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏]
Entonces:
𝑨𝒄𝒄(𝑫) = 𝒃𝒊𝒏 [ 𝑰𝟕 + 𝑴𝒄 + 𝑴𝒄𝟐
+ 𝑴𝒄𝟑
+ 𝑴𝒄𝟒
+ 𝑴𝒄𝟓
]
= 𝒃𝒊𝒏
[
𝟑 𝟒 𝟓 𝟒 𝟓 𝟒
𝟒 𝟐 𝟓 𝟓 𝟓 𝟓
𝟑 𝟒 𝟑 𝟒 𝟒 𝟒
𝟒 𝟒 𝟑 𝟓 𝟒 𝟒
𝟑 𝟒 𝟒 𝟓 𝟒 𝟓
𝟑 𝟑 𝟑 𝟒 𝟏 𝟒]
=
[
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏]
Como la matriz de accesibilidad no tiene componentes nulos el dígrafo es fuertemente
conexo.
Para f) Encontrar la distancia de v2 a los demás vértices utilizando el algoritmo
de Dijkstra
Con el algoritmo de Dijkstra se encuentran las siguientes distancias:
𝑫(𝑽𝟐 , 𝑽𝟏) = 𝟖
𝑫(𝑽𝟐 , 𝑽𝟐) = 𝟎
𝑫(𝑽𝟐 , 𝑽𝟑) = 𝟑
𝑫(𝑽𝟐 , 𝑽𝟒) = 𝟒
𝑫(𝑽𝟐 , 𝑽𝟓) = 𝟔
𝑫(𝑽𝟐 , 𝑽𝟔) = 𝟑

More Related Content

What's hot

countor integral
countor integralcountor integral
countor integralSheril Shah
 
1531 fourier series- integrals and trans
1531 fourier series- integrals and trans1531 fourier series- integrals and trans
1531 fourier series- integrals and transDr Fereidoun Dejahang
 
A multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfacesA multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfacesTim Reis
 
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-II
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IIEngineering Mathematics-IV_B.Tech_Semester-IV_Unit-II
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IIRai University
 
Construction of C3V character table
Construction of C3V  character tableConstruction of C3V  character table
Construction of C3V character tableEswaran Murugesan
 
Engg. math 1 question bank by mohammad imran
Engg. math  1 question bank by mohammad imran Engg. math  1 question bank by mohammad imran
Engg. math 1 question bank by mohammad imran Mohammad Imran
 
Linear transformations-thestuffpoint.com
Linear transformations-thestuffpoint.comLinear transformations-thestuffpoint.com
Linear transformations-thestuffpoint.comAbu Bakar Soomro
 
TechMathI - Point slope form
TechMathI - Point slope formTechMathI - Point slope form
TechMathI - Point slope formlmrhodes
 
03.1 orthogonal treajectories (1)
03.1 orthogonal treajectories (1)03.1 orthogonal treajectories (1)
03.1 orthogonal treajectories (1)jay shah
 
Families of curves
Families of curvesFamilies of curves
Families of curvesTarun Gehlot
 
Orthogonal trajectories
Orthogonal trajectoriesOrthogonal trajectories
Orthogonal trajectoriesAli Zar
 

What's hot (18)

Unit1
Unit1Unit1
Unit1
 
countor integral
countor integralcountor integral
countor integral
 
1531 fourier series- integrals and trans
1531 fourier series- integrals and trans1531 fourier series- integrals and trans
1531 fourier series- integrals and trans
 
A multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfacesA multiphase lattice Boltzmann model with sharp interfaces
A multiphase lattice Boltzmann model with sharp interfaces
 
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-II
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IIEngineering Mathematics-IV_B.Tech_Semester-IV_Unit-II
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-II
 
Construction of C3V character table
Construction of C3V  character tableConstruction of C3V  character table
Construction of C3V character table
 
Engg. math 1 question bank by mohammad imran
Engg. math  1 question bank by mohammad imran Engg. math  1 question bank by mohammad imran
Engg. math 1 question bank by mohammad imran
 
Linear transformations-thestuffpoint.com
Linear transformations-thestuffpoint.comLinear transformations-thestuffpoint.com
Linear transformations-thestuffpoint.com
 
Character tables
Character tablesCharacter tables
Character tables
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
Ic ii-10
Ic ii-10Ic ii-10
Ic ii-10
 
TechMathI - Point slope form
TechMathI - Point slope formTechMathI - Point slope form
TechMathI - Point slope form
 
3 handouts section3-5
3 handouts section3-53 handouts section3-5
3 handouts section3-5
 
03.1 orthogonal treajectories (1)
03.1 orthogonal treajectories (1)03.1 orthogonal treajectories (1)
03.1 orthogonal treajectories (1)
 
Families of curves
Families of curvesFamilies of curves
Families of curves
 
Orthogonal trajectories
Orthogonal trajectoriesOrthogonal trajectories
Orthogonal trajectories
 
Fourier series
Fourier series Fourier series
Fourier series
 
ψ And ψ2 significance
ψ And ψ2  significanceψ And ψ2  significance
ψ And ψ2 significance
 

Similar to Ejercicios propuestos Estructuras Discretas II Verónica Torres

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
 
Mit15 082 jf10_lec01
Mit15 082 jf10_lec01Mit15 082 jf10_lec01
Mit15 082 jf10_lec01Saad Liaqat
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxssuser01e301
 
Digital Signals and System (April – 2017) [75:25 Pattern | Question Paper]
Digital Signals and System (April  – 2017) [75:25 Pattern | Question Paper]Digital Signals and System (April  – 2017) [75:25 Pattern | Question Paper]
Digital Signals and System (April – 2017) [75:25 Pattern | Question Paper]Mumbai B.Sc.IT Study
 
cat-quant-cheat-sheet
 cat-quant-cheat-sheet cat-quant-cheat-sheet
cat-quant-cheat-sheettechonomics1
 
MODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptxMODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptxAlokSingh205089
 
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014][Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]Mumbai B.Sc.IT Study
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Charlton Inao
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Asafak Husain
 
Complex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptxComplex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptxjyotidighole2
 
Singh presentation
Singh presentationSingh presentation
Singh presentationgagan22
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp scienceRaghu nath
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Charlton Inao
 
Class1
 Class1 Class1
Class1issbp
 
Secure Domination in graphs
Secure Domination in graphsSecure Domination in graphs
Secure Domination in graphsMahesh Gadhwal
 
Algebra 2 unit 12.2.12.4
Algebra 2 unit 12.2.12.4Algebra 2 unit 12.2.12.4
Algebra 2 unit 12.2.12.4Mark Ryder
 
My finale MAD. Antonette
My finale MAD. AntonetteMy finale MAD. Antonette
My finale MAD. Antonette09102565143
 
1 Functions and Permutation.pptx
1 Functions and Permutation.pptx1 Functions and Permutation.pptx
1 Functions and Permutation.pptxAlrondAbad
 

Similar to Ejercicios propuestos Estructuras Discretas II Verónica Torres (20)

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...
 
Mit15 082 jf10_lec01
Mit15 082 jf10_lec01Mit15 082 jf10_lec01
Mit15 082 jf10_lec01
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptx
 
Digital Signals and System (April – 2017) [75:25 Pattern | Question Paper]
Digital Signals and System (April  – 2017) [75:25 Pattern | Question Paper]Digital Signals and System (April  – 2017) [75:25 Pattern | Question Paper]
Digital Signals and System (April – 2017) [75:25 Pattern | Question Paper]
 
Cat Quant Cheat Sheet
Cat Quant Cheat SheetCat Quant Cheat Sheet
Cat Quant Cheat Sheet
 
cat-quant-cheat-sheet
 cat-quant-cheat-sheet cat-quant-cheat-sheet
cat-quant-cheat-sheet
 
MODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptxMODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptx
 
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014][Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]
 
Complex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptxComplex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptx
 
Singh presentation
Singh presentationSingh presentation
Singh presentation
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp science
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
 
Class1
 Class1 Class1
Class1
 
Linkedin_PowerPoint
Linkedin_PowerPointLinkedin_PowerPoint
Linkedin_PowerPoint
 
Secure Domination in graphs
Secure Domination in graphsSecure Domination in graphs
Secure Domination in graphs
 
Algebra 2 unit 12.2.12.4
Algebra 2 unit 12.2.12.4Algebra 2 unit 12.2.12.4
Algebra 2 unit 12.2.12.4
 
My finale MAD. Antonette
My finale MAD. AntonetteMy finale MAD. Antonette
My finale MAD. Antonette
 
1 Functions and Permutation.pptx
1 Functions and Permutation.pptx1 Functions and Permutation.pptx
1 Functions and Permutation.pptx
 

Recently uploaded

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Ejercicios propuestos Estructuras Discretas II Verónica Torres

  • 1. UNIVERSIDAD FERMÍN TORO VICE-RECTORADO ACADÉMICO FACULTAD DE INGENIERÍA ESCUELA DE COMPUTACIÓN Ejercicios Propuestos  Alumna: Verónica Torres  C.I: V-28.399.477  SAIA A  Estructuras Discretas II  Prof. Edecio Freitez
  • 2. Ejercicio 1: grafo Dado el siguiente grafo, encontrar: a) Matriz de adyacencia b) Matriz de incidencia c) ¿Es conexo? Justifique su respuesta d) ¿Es simple? Justifique su respuesta e) ¿Es regular? Justifique su respuesta f) ¿Es completo? Justifique su respuesta g) Una cadena simple no elemental de grado 6 h) Un ciclo no simple de grado 5 i) Árbol generador aplicando el algoritmo constructor j) Subgrafo parcial k) Demostrar si es euleriano aplicando el algoritmo de Fleury l) Demostrar si es hamiltoniano
  • 3. 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 SOLUCIÓN Para a) Matriz de adyacencia 𝑀𝐴(𝑔) = 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 [ 0 1 1 1 1 0 0 1 1 0 1 0 0 1 1 1 1 1 0 1 1 1 1 0 1 0 1 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 1 1 1 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 1 1 1 0] Para b) Matriz de incidencia 𝑀𝑖(𝑔) = 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 [ 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 1] Para c) ¿Es conexo? Justifique su respuesta Si es conexo, ya que se cumple la condición de que todos los vértices están conectados a través de al menos una trayectoria, es decir, existe una cadena para todos los vértices. Para d) ¿Es simple? Justifique su respuesta Efectivamente es un grafo simple, esto debido a que se cumple que no existen lazos y tampoco hay más de una arista entre cada par de vértices. Para e) ¿Es regular? Justifique su respuesta No es un grafo regular ya que sus vértices tienen grados diferentes. Nótese que: 𝑔𝑟(𝑉 ) = 5 → 𝐺𝑅𝐴𝐷𝑂 𝐷𝐸𝐿 𝑉É𝑅𝑇𝐼𝐶𝐸 1 𝑔𝑟(𝑉 ) = 6 → 𝐺𝑅𝐴𝐷𝑂 𝐷𝐸𝐿 𝑉É𝑅𝑇𝐼𝐶𝐸 3 ⇒ 𝐶𝑜𝑚𝑜: 𝑔𝑟(𝑉 ) ≠ 𝑔𝑟(𝑉 ), 𝑒𝑙 𝑔𝑟𝑎𝑓𝑜 𝑛𝑜 𝑒𝑠 𝑟𝑒𝑔𝑢𝑙𝑎𝑟
  • 4. Para f) ¿Es completo? Justifique su respuesta No es un grafo completo porque hay vértices que no están conectadas por una arista. Para g) Una cadena simple no elemental de grado 6 𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 0 , 𝑉 ] Como se repite el vértice (𝑉 ) no es elemental. Para h) Un ciclo no simple de grado 5 𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 9 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 ] Es un ciclo no simple Para i) Árbol generador aplicando el algoritmo constructor Para j) Subgrafo parcial
  • 5. Para k) Demostrar si es Euleriano aplicando el algoritmo de Fleury Como el grado de 𝑉 = 5 (impar), como no existen vértices de grado impar el grafo no es Euleriano. Para l) Demostrar si es hamiltoniano Ciclo que contiene todos los vértices Tiene un ciclo hamiltoniano, por lo tanto esto quiere decir que el grafo es hamiltoniano. Ejercicio 2: dígrafo Dado el siguiente dígrafo a) Encontrar matriz de conexión b) ¿Es simple? Justifique su respuesta c) Encontrar una cadena no simple no elemental de grado 5 d) Encontrar un ciclo simple e) Demostrar si es fuertemente conexo utilizando la matriz de accesibilidad f) Encontrar la distancia de v2 a los demás vértices utilizando el algoritmo de Dijkstra Arista a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 Pond. 2 3 4 3 2 3 4 1 4 3 2 2 4 3
  • 6. 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 SOLUCIÓN Para a) Encontrar matriz de conexión 𝑴𝒄 = 𝑽𝟏 𝑽𝟐 𝑽𝟑 𝑽𝟒 𝑽𝟓 𝑽𝟔 [ 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟎 𝟏 𝟎] Para b) ¿Es simple? Justifique su respuesta Si es un dígrafo simple ya que se puede observar que no tiene arcos ni lazos paralelos. Para c) Encontrar una cadena no simple no elemental de grado 5 𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 0 , 𝑉 , 𝐴 , 𝑉 ] Como se repite el vértice 𝑉 es una cadena no simple elemental de grado 5 por sus 5 arcos. Para d) Encontrar un ciclo simple 𝐶 = [𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴 , 𝑉 , 𝐴9 , 𝑉 ]
  • 7. 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 Para e) Demostrar si es fuertemente conexo utilizando la matriz de accesibilidad 𝑴𝒄 = 𝑽𝟏 𝑽𝟐 𝑽𝟑 𝑽𝟒 𝑽𝟓 𝑽𝟔 [ 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟎 𝟎 𝟎 𝟏 𝟎] 𝑴𝒄𝟐 = 𝑴𝒄. 𝑴𝒄 𝑴𝒄𝟐 = 𝑽𝟏 𝑽𝟐 𝑽𝟑 𝑽𝟒 𝑽𝟓 𝑽𝟔 [ 𝟎 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟎 𝟎 𝟏 𝟏 𝟏 𝟏 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏 𝟏 𝟏 𝟏 𝟎 𝟏 𝟎 𝟏 𝟎 𝟏] 𝑴𝒄𝟑 = 𝑴𝒄. 𝑴𝒄𝟐 𝑴𝒄𝟑 = 𝑽𝟏 𝑽𝟐 𝑽𝟑 𝑽𝟒 𝑽𝟓 𝑽𝟔 [ 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟎 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟎 𝟏 𝟏 𝟏 𝟏] 𝑴𝒄𝟒 = 𝑴𝒄. 𝑴𝒄𝟑 𝑴𝒄𝟒 = 𝑽𝟏 𝑽𝟐 𝑽𝟑 𝑽𝟒 𝑽𝟓 𝑽𝟔 [ 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏]
  • 8. 𝑉 𝑉 𝑉 𝑉 𝑉 𝑉 𝑴𝒄𝟓 = 𝑴𝒄. 𝑴𝒄𝟒 𝑴𝒄𝟓 = 𝑽𝟏 𝑽𝟐 𝑽𝟑 𝑽𝟒 𝑽𝟓 𝑽𝟔 [ 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏] Entonces: 𝑨𝒄𝒄(𝑫) = 𝒃𝒊𝒏 [ 𝑰𝟕 + 𝑴𝒄 + 𝑴𝒄𝟐 + 𝑴𝒄𝟑 + 𝑴𝒄𝟒 + 𝑴𝒄𝟓 ] = 𝒃𝒊𝒏 [ 𝟑 𝟒 𝟓 𝟒 𝟓 𝟒 𝟒 𝟐 𝟓 𝟓 𝟓 𝟓 𝟑 𝟒 𝟑 𝟒 𝟒 𝟒 𝟒 𝟒 𝟑 𝟓 𝟒 𝟒 𝟑 𝟒 𝟒 𝟓 𝟒 𝟓 𝟑 𝟑 𝟑 𝟒 𝟏 𝟒] = [ 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏] Como la matriz de accesibilidad no tiene componentes nulos el dígrafo es fuertemente conexo. Para f) Encontrar la distancia de v2 a los demás vértices utilizando el algoritmo de Dijkstra Con el algoritmo de Dijkstra se encuentran las siguientes distancias: 𝑫(𝑽𝟐 , 𝑽𝟏) = 𝟖 𝑫(𝑽𝟐 , 𝑽𝟐) = 𝟎 𝑫(𝑽𝟐 , 𝑽𝟑) = 𝟑 𝑫(𝑽𝟐 , 𝑽𝟒) = 𝟒 𝑫(𝑽𝟐 , 𝑽𝟓) = 𝟔 𝑫(𝑽𝟐 , 𝑽𝟔) = 𝟑