12
Look at the following picture. This is a representation of a street network. The blue dots represent parking meters. Make a graphical representation of this street network. Note that any sidewalks without parking meters are not represented by edges because those streets are not necessary in our network. Vertices should represent street intersections.

Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Lookatthefollowingpicture.Thisisarepresentationofastreetnetwork.Thebluedotsrepresentparkingmeters.Makeagraphicalrepresentationofthisstreetnetwork.Notethatanysidewalkswithoutparkingmetersarenotrepresentedbyedgesbecausethosestreetsarenotnecessaryinournetwork.Verticesshouldrepresentstreetintersections.

Page 2: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

DoesthisnetworkhaveanEulerCircuit?DoesthisnetworkhaveanEulerPath?WhywouldanEulerPathnotbeoptimalforthisspecificproblemaboutparkingmeters?

Et start*

*

End

no

yes ↳ Found.SE#ttopedD9Ffret

Don't end upback at

my ca

Page 3: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Sowhatisthebestrouteforcollectingthemoneyfromthemeters?Canyoumakeacircuitforthisgraph?(rememberacircuitjuststartsandendsatthesameplace,itcanpassthesameedgemorethanonce)

Page 4: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Isthereawaytoaddonlyafew(oronly1)edgetomakethisintoanEulercircuit?

¥*

)*

Page 5: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Byaddingjustoneedge,wecanmakeanEulercircuit,butnote,theedgeisnotreallynew,itisjustreused

Page 6: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Whatwejustdidiscalledeulerizingagraph.• Wetookagraphandaddededgesbyduplicatingexistingedgestomakeaconnectedevenvalentgraph

• WefoundanEulercircuitontheeulerizedgraph

EulerizingaGraph—addingedgesthatduplicateexistingedgestoaconnectedgraphtomakeallvalenceseven.

Goal → make m Euler Circuit

Page 7: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

EulerizingaGraphExample:1) locatetheverticeswithoddvalence

2

3z

2

Page 8: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

2) addoneendofanedgeateachoddvertex,matchupthenewedgewithanexistingedgeintheoriginalgraph

duplicated

124fdplicafd

31

$44

z.

Page 9: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

3) createanEulercircuit

Page 10: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

4) “Squeeze”theEulercircuitontotheoriginalgraph.Notethattherewillbetworeusesofedgesandeachreusecorrespondstoanaddededge

GeneralRule:Thenumberofreusesofedgesequalsthenumberofaddededgesduringeulerization

Page 11: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Howdowefindthebesteulerization?Didwefindthemostefficientpathforthelastgraph?

Isthereawaywherewecanhaveonlyonereuseinsteadoftwo?

.

Optimal colorization

$-4

Page 12: Look at the following picture. This is a …msjacobsmath.weebly.com/uploads/2/6/2/5/26258835/dm...Look at the following picture. This is a representation of a street network. The blue

Obviouslyonereusededgeisbetterthantwo.Sothisisabettereulerization.Thereisanalgorithmtofindthebesteulerization,butitisacomplicatedalgorithmthatwearenotgoingtoexamine.