• Aucun résultat trouvé

C i at the rst not olored vertex, then in sequential order,

N/A
N/A
Protected

Academic year: 2022

Partager "C i at the rst not olored vertex, then in sequential order, "

Copied!
5
0
0

Texte intégral

(1)

K.Deshinkel AG44

Final Exam - 2h

1 Maximum height (/)

Thefollowingnetwork representsaportionofaityroad network.All theroadsaretwo-way

and representedby theedges between two destinations. Thenumberson the edgesindiate the

maximal heights(in entimeters)authorized for thevehiles.Adriverwants tomakeadelivery

frompointAtopointB.Insuhase,hewantstodeterminethemaximalheightx(inmeters)of

thetrukwhih isauthorized.

1. Showthatthisprobleminvolvestheresolutionofalassialproblemofgraph.Whih one?

2. Quoteandapplyanalgorithmtosolveaboveproblem.

3. Determinethemaximalheightofthetruk,suh thatthedeliveryispossibleandprovidea

feasibleroute.

2 Graph oloring(/)

A vertex-oloringproblem onsists in assigning alegalolor oneah vertexof agraph, suh

that, any two adjaent verties (onneted by an edge) are assigned two dierent olors. For a

(2)

1. Drawtheundiretedgraphwitheightverties(A1 toA8),representedherebytheedges

(A1,A2), (A1,A3),(A1,A4),(A1,A7)

(A2,A3), (A2,A4),(A2,A5)

(A3,A5), (A3,A6),(A3,A7)

(A4,A5), (A4,A7)

(A5,A6), (A5,A7),(A5,A8)

(A6,A8)

(A7,A8)

2. The Welh-Powell algorithm gives an approximate solution in determining the hromati

number.Applythisalgorithmontheabovegraphandpresenttheresultofobtainednumber

ofolors.

Welh-Powellalgorithm

Step1:Orderthevertiesofthegraph

G

bythedereasingorderofvertiesdegrees.

i = 1

Step 2 : Assign the olor

C i

at the rst not olored vertex, then in sequential order,

assignolor

C i

toeahvertexwhihisnotadjaentwithvertiesalreadyoloredwith

C i

.

i < −i + 1

Step3:Repeatthestep2untilallthevertiesareolored.

3. Explain whyabovegraphisnot2-olorable(ieusingonlytwoolors)?Determinethevalue

of

χ(G)

forthisgraph.

4. Can you determine the hromati number of

χ(K n )

, where

K n

is a

n

verties omplete

graph?

5. Givethetimeomplexity(usingO-notation)ofWelh-Powellalgorithmbasedon

n

(number

ofverties)and

m

(numberofedges).

6. Theorem: thethree followingpropositionsareequivalent

G

is2-olorable.

G

isabipartitegraph.

Everyylein

G

ontainsanevennumberofedges.

Givetheproofofthistheorem(equivaleneofpropositions)

7. ThefollowingTablesummarizestheandidates seletionexamination session,in whih the

linesorrespondtothevariousexaminationsubjetsandolumnstotheandidates.Ifeah

andidateisauthorizedtopartiipateonlyoneexamperday,howmanydaysarerequiredto

organizeanexaminationsessionthatallandidatesannishalltheexaminationsubjets?

Formulate the problem asavertex-oloringproblem. Speify the notation for theverties

andedgesin thegraph,themeaningofolors.Find asolutionforsuhproblem.

A B C D E F G H I J K L M

1 * * * * *

2 * * * *

3 * * * *

4 * *

5 * * * *

(3)

roups dynamis is an interesting and important problem in soial psyhology. A group of

people and their relationships an be represented by a graph, in whih the verties represent

theindividuals andtheedges representtherelationsamong them.If thereis anedge onjoining

twoverties,thatindiatesthere isarelationshipbetweenthesetwoindividuals.Theproblemof

balaneinGroupdynamiswasintroduedbythepsyhologistHeider,whorepresentstheproblem

byasignedgraph.A signedgraphisagraph

G = (S, A)

, inwhihapositive(+)ornegative(-)

signisassignedoneahedgewhihindiatestheagreementordisagreementbetweentwoadjaent

individuals. A path or ayle in a signed graph is alled positive if it has an even number of

negativeedges,andtheoneontaininganoddnumbernegativeedgesisallednegative.Asigned

graphGissaidtobebalanedifandonlyifeveryyleofGispositive.

Example:

(a,d);(b,d);(b,)arethreepairsofindividualsinagreement

aandb areindisagreement,anddarein disagreement

therelationshipbetweenaandisnotknown

Thepathadbispositive,thepathadbdisnegativeTheyleadbaisnegative,theyleadba

ispositive.

1. Give(withoutonsideringisomorphigraphs)allompletesignedgraphswiththreeverties.

Indiateifitisbalanedornot.

2. Add sign

+/−

onthe edges of abovegraphto obain three balaned graphsand three not

balaned graphs.

3. Indiate the balaned graphsamong the following graphs. Show for eah balaned graph

that itsvertexsetanbepartitionedintotwosubsets(oneofwhihmaybeempty)sothat

anyedgejoigningtwovertieswithinthesamesubsetispositivewhileanyedgejoigningtwo

vertiesin dierentsubsetsis negative.

(4)

ofwhihmaybeempty)sothat anyedgejoigningtwovertieswithin thesamesubsetispositive

whileanyedgejoigningtwovertiesin dierentsubsetsisnegative.Provethetwotheorems.

(Theorem 1)A signedgraphGis balanedifand onlyifallpathsjoining thesamepairof

vertieshavethesamesign

(Theorem2) AsignedgraphGisbalanedifandonlyifeveryyleofGispositive

4 Inompatibility (/)

Agroupofeightpeopleismeetingfordinner.Theinompatiblerelationsamongthemembers

aresummarizedin thefollowingtable :

A B C D E F G H

doesnotagreewith B,D A,F,E,H D,E A,C,G B,C,F B,E,H H,D B,F,G

1. Model the onits among people in theform of agraph(speify the notationof verties

andedges).

2. Proposeaplantable(the tableisirular)forthisgroupbyseparatingtheanytwoinom-

patible persons.Show that theproblem onsists in ndinga partiularset of vertiesin a

partiulargraph(speifywhihsetin whihgraph).

5 Flow

Consider the direted network below. The numbers on the edges represent the apaity of

eah edge. Quote and apply an algorithm to nd amaximum ow in this network,from s to t

(Showatleastonestepofthealgorithm).Also,ndaminimumutinthenetwork.

(5)

Références

Documents relatifs

For conservative dieomorphisms and expanding maps, the study of the rates of injectivity will be the opportunity to understand the local behaviour of the dis- cretizations: we

It is of much interest to notice that this approach, although directed to a different immediate goal, by having faced problems recognised as very similar to those encountered in

This Note is a complement to paper [6] , especially Theorem 1.3, when the total ordering imposed on the wreath product C l o S n is defined as follows: the set {0, 1,. The

Direct inspection for (1, 0) and (0, 1); then note that addition defined geometrically, so adding and then rotating is the same as rotating and

In any plane graph, the verties an an be olored using at most four olors so that. no two adjaent verties have the

trastuzumab en association à la capécitabine et cisplatine chez les patients avec cancer gastrique HER2 positif en première ligne métastatique et montrait un pro fi l de tolérance et

Enter Text Mode at current graphics beam position Send status and cursor data to host Erase screen, enter Text Mode at home position top left , set Marg in 1, reset 1 ine type, and

Then files may be copied one at a time (or with a wild card transfer) to the dual density diskette.. Using the Filer under the UCSD O/S, do an E)xtended listing of the files on