Docsity

Graphs - Biological and Cognitive Sciences - Lecture Notes, Study notes of Biogenetics and Computers

Toggle sidebar
bg1
Know the probability of a particular event =
# desirable outcomes ?
---------------------------------- = -----------------------------------
# total outcomes n!
1 precedes 2 : n!/2 cases in which 1 precedes 2,
a)
n!/2 cases in which 2 precedes 1
prob = (n!/2)/n! = 1/2
b)
1 immediately precedes 2
c)
12xxxxxxxx, x12xxxxxxx, …, xxxxxxxx12 (n-1 choices)
xxxxxxxxx P(n-2,n-2) = (n-2)!/0! = (n-2)!
n precedes 1 and n-1 precedes 2
Problem 8
Graphs Page 1
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Graphs - Biological and Cognitive Sciences - Lecture Notes and more Study notes Biogenetics and Computers in PDF only on Docsity!

Know the probability of a particular event =

desirable outcomes?

---------------------------------- = -----------------------------------

total outcomes n!

a) 1 precedes 2 : n!/2 cases in which 1 precedes 2, n!/2 cases in which 2 precedes 1 prob = (n!/2)/n! = 1/ b) omitted c) 1 immediately precedes 2 12xxxxxxxx, x12xxxxxxx, …, xxxxxxxx12 (n-1 choices) xxxxxxxxx P(n-2,n-2) = (n-2)!/0! = (n-2)! n precedes 1 and n-1 precedes 2 Problem 8 Docsity.com

Docsity.com

represent vertices as circles

represent edges as directed lines

Graph drawing

Example: task graph

V = {"take out trash", "make dinner", "light candles",

"shop for groceries", "finish work"}

This is a partial order relation.

The total order is an order in which you can complete the

tasks!

Graph drawing Docsity.com

Directed: edges have arrows

Undirected: no arrows, used to depict symmetric

relations

Kinds of graphs

An undirected graph is a symmetric relation!

Kinds of graphs Docsity.com

A tree is just a graph where there is a unique path to

each node, by walking edges.

Kinds of undirected graphs Docsity.com

Distances between cities Friends/social networks

Examples of graphs

Docsity.com

Theorem: In a graph G=(V,E), the sum of all vertex

degrees is 2 times the number of edges (|E|).

Proof: each edge connects two vertices. Thus each edge

is counted in the degrees of the two vertices it connects

adding an edge adds two to the sum of all degrees.

The handshaking theorem

Docsity.com