• No results found

Designing Efficient Parallel Algorithms for Graph Problems

N/A
N/A
Protected

Academic year: 2020

Share "Designing Efficient Parallel Algorithms for Graph Problems"

Copied!
16
0
0

Loading.... (view fulltext now)

Full text

(1)

Algorithms for Graph Problems

Weifa Liang

A thesis submitted for the degree of

Doctor of Philosophy at

(2)

WeifaLiang

Typeset inComputerModernbyT X and L A

T X2

(3)

These resultshave also appeared in [114 , 121 ]. Chapter 3 is joint work withBrendan

McKayandHongShen. Theresultsofthischapterhavealsoappearedin[120 ]. Chapter

4 is joint work with Brendan McKay. The content of this chapter has also appeared

in[116 ]. Chapter 5is joint workwithGeorge Havas andBrendanMcKay. Theresults

of this chapter have appeared in [115,119]. Some of the resultsin Chapter 6 are the

joint work with Xiaojun Shen [122]. These results are included in Sections 6.2, 6.3,

and 6.5. Chapter 8 is joint work with Richard Brent. The contents of this chapter

have also appeared in [113]. Some of Chapter 9 was carried out with Xiaojun Shen

and QingHu. They are included in Sections 9.3 and 9.4. The results of this chapter

have also appeared in[112, 123 ]. Chapter 10 is joint work with BrendanMcKay, the

contents ofthischapter have also appearedin[118].

Except whereotherwise indicated,thisthesis ismyown originalwork.

(4)
(5)

I am truly indebtedto mysupervisors,Brendan McKayand Richard Brent, fortheir

supportand encouragement overthepastthree years. Asasupervisor,Brendanmade

himself frequently available day and night to help me through research crises, clarify

myideasandexplanations,andprovideadviceonresearch. Henotonlygavelotsofhis

timeand commentswhichinuencedmywritingbutalso showed mehowto strivefor

agoodpresentation. Hisapproachto algorithms,withtheemphasisonidentifyingthe

combinatorial structure inthe problem, the technique usedand the search forsimple

andelegant solutions,hasleftadeepimpactonme. Iamsincerelythankfultohimfor

beingsogenerouswithhistimeandforbeingsoimmenselypatientwithmeduringthe

courseofmyPh.D.RichardwasalwaysavailablewhenIneededhim. Ienjoyedtalking

with him which always left me with some new ideas. I have learnt much from him

about exploring a new research area. In addition to his technical expertise in many

diverse areas, I have been particularly impressedby his scientic rigor and integrity,

andIwillstrivetoemulate thesequalitiesinmyownresearch. Bothofmysupervisors

have had a great inuence on my development as a researcher, their knowledge and

intuition have beeninvaluable,and Iamgrateful to have beentheir student.

IwouldliketoexpressmygratitudetoXiaojunSheninTheUniversityofMissouri

at Kansas City. It was arare pleasure working withhimwhen Iwasa visitor there. I

have beenbenetedgreatlyfromhis insight,enthusiasm,and encouragement. Iwould

alsoliketothankE.V.Krishnamurthyforhismanysuggestionsandhelpfulcomments

inthepreparation ofthisthesis.

I am grateful to my co-authors Richard Brent, George Havas, Qing Hu, Brendan

McKay, Hong Shen, Xiaojun Shen, and BingbingZhou fortheir contributions to our

collaborativework. Eachhastaughtmeagreatdealaboutresearchand aboutwriting

aboutresearch.

Many other people have helped me in many dierent ways during my years in

the Department of Computer Science at The Australian National University. They

have helped to make my life in Canberra much easier and enjoyable. In particular,

I would like to thank my colleagues Steve Blackburn who helped me with many of

my L A

T

E

X questions over years, BillKeating forhis patient reading of my papers and

providing hiscomments, HongxueWang forshowingmelotsof funnysoftware. Many

thanks arealso dueto our department head BrianMolinari forhis generous nancial

sponsorship which has allowed me to attend several important international

confer-ences, our system consultants Huge and Williamson for their help on my software

problems, and oursecretaryKathy forheradministrativehelp.

Most of all,I especially want to thank my family. My parents for instillingin me

(6)

timesofdoubtand worry. Withouttheirsupportandencouragement,thisthesiscould

(7)

Graph algorithms are concerned with the algorithmic aspects of solving graph

prob-lems. The problemsaremotivatedfrom and haveapplication to diverse areas of

com-puter science, engineering and other disciplines. Problems arisingfrom these areas of

application are good candidatesfor parallelization since they often have bothintense

computational needs and stringent response time requirements. Motivated by these

concerns,thisthesisinvestigatesparallelalgorithmsforthese kindsof graphproblems

that have at least one of the following properties: the problems involve some type of

dynamicupdates;thesparsicationtechniqueisapplicable;ortheproblemsareclosely

relatedtocommunicationsnetworkissues. Themodelsofparallelcomputationusedin

ourstudiesaretheParallelRandomAccessMachine(PRAM)modeland thepractical

interconnection networkmodelssuchas meshesand hypercubes.

Consider a communications network which can be represented by a graph G =

(V;E), whereV isa setof sites (processors), and E is a setof linkswhich areusedto

connect thesites(processors). Insome cases,wealso assignweightsand/or directions

to the edgesin E. Associatedwith thisnetwork, there aremanyproblemssuchas (i)

whether the network is k-edge (k-vertex) connected with xed k; (ii) whether there

arek-edge (k-vertex) disjoint pathsbetweenu and v forapair ofgiven verticesu and

v after the network is dynamically updated by adding and/or deleting an edge etc;

(iii) whether the sites in the network can communicate with each other when some

sitesand linksfail;(iv)identifyingtherst k edges inthenetwork whosedeletionwill

resultinthemaximumincreaseintheroutingcostintheresultingnetworkforxedk;

(v) how to augment the network at optimal cost witha given feasibleset of weighted

edges such that the augmented network is k-edge (k-vertex) connected; (vi) how to

route messages throughthenetwork eÆciently. Inthisthesis weanswer theproblems

mentionedabove bypresentingeÆcient parallelalgorithmsto solvethem. Asfaraswe

know, mostof theproposedalgorithmsaretherst ones intheparallelsetting.

Even though mostof the problemsconcerned inthisthesis are related to

commu-nications networks, we also study theclassic edge-coloringproblem. The outstanding

diÆcultytosolvethisprobleminparallelisthatwedonotyetknowwhether ornotit

isinNC.Inthisthesiswepresentanimprovedparallelalgorithmfortheproblemwhich

needs O( 4:5

log 3

logn+ 4

log 4

n) time using O(n 2

+n

3

) processors, where n

is the number of vertices and is the maximum vertex degree. Compared with a

previouslyknownresultonthesamemodel,weimprovedbyanO( 1:5

)factorintime.

The non-trivial part is to reduce this problem to the edge-coloring update problem.

We also generalizethisproblemto theapproximateedge-coloringproblem bygiving a

fasterparallelalgorithm forthelatter case.

(8)

technique called thesparsication technique isvery powerful inthedesign of eÆcient

sequential and parallel algorithms on dense undirected graphs. We believe that this

technique may be useful in its own right for guiding the designof eÆcient sequential

(9)

Acknowledgments v

Abstract vii

List of Figures xiii

Abbreviations xv

1 Introduction 1

1.1 The Parallel ComputationalModels . . . 2

1.2 Notations and Terminology . . . 4

1.3 The Problemsand RelatedLiterature Review . . . 7

1.3.1 Testingfor k-connectivityforxed k . . . 8

1.3.2 Theoptimalk-connectivityaugmentationproblem . . . 8

1.3.3 Fullydynamicmaintenance of k-connectivity . . . 9

1.3.4 The partially dynamic maintenance of the solution of all pairs shortestpaths. . . 11

1.3.5 Thek MVE MSTproblemand relatedproblems . . . 12

1.3.6 Theapproximatet-spannerproblem . . . 14

1.3.7 Theedge-coloringproblem and related problems . . . 15

1.3.8 Themaximalinterlockingset problem . . . 16

1.4 Overview oftheThesis . . . 16

2 NCAlgorithmsfortheFullyDynamicMaintenanceofk-Connectivity withk =2;3 21 2.1 Introduction. . . 21

2.2 Preliminaries . . . 24

2.2.1 Basicconcepts . . . 24

2.2.2 Thesparse k-edge(k-vertex) certicate . . . 24

2.2.3 Eppsteinet al's sparsicationtechnique . . . 25

2.3 The Maintenance of 2ECCsonConnected Graphs . . . 26

2.3.1 Thedata structures . . . 26

2.3.2 Analgorithm forqueries . . . 29

2.3.3 Insertingand deletingedges . . . 33

2.4 The Maintenance of 2-and 3-ECCson GeneralGraphs. . . 34

2.4.1 2ECCson disconnected graphs . . . 34

2.4.2 Animproved algorithmfor2ECCs . . . 35

(10)

2.5 The Maintenance of 2- and 3-VCCs onGeneralGraphs . . . 36

2.5.1 Findinga strong, sparsek-vertex certicateof G . . . 36

2.5.2 The maintenance of 2VCCs . . . 37

2.5.3 The maintenance of 3VCCs . . . 38

2.6 Conclusions . . . 38

3 NC Algorithms for the Partially Dynamic Maintenance of the Solu-tion of All Pairs Shortest Paths 39 3.1 Introduction. . . 39

3.2 An Algorithm fortheAllPairsShortest PathsProblem . . . 41

3.3 AlgorithmsforOther Problems . . . 43

3.3.1 Findingall pairslongest pathsina DAG . . . 43

3.3.2 Topologicalsortingin aDAG . . . 44

3.3.3 The dynamictransitive closure problem . . . 45

3.4 Conclusions . . . 46

4 NC Algorithms for Testing k-Connectivity of Directed and Undi-rected Graphs with Fixed k 47 4.1 Introduction. . . 47

4.2 Directedgraphs . . . 48

4.3 Undirectedgraphs . . . 51

4.4 NC reductionofedgeconnectivity to vertexconnectivity . . . 52

4.5 Conclusion . . . 52

5 NC ApproximationAlgorithms for the Optimalk-Connectivity Aug-mentation Problem with Fixed k 53 5.1 Introduction. . . 53

5.2 Preliminaries . . . 56

5.3 2-Edge ConnectivityAugmentation . . . 57

5.4 Biconnectivity Augmentation . . . 60

5.5 k-Edge ConnectivityAugmentation. . . 65

5.5.1 k-edge connectivity augmentation on a (k 1)-edge connected graph . . . 65

5.5.2 k-edge connectivity augmentationona generalgraph. . . 72

5.6 Conclusions . . . 73

6 Finding k Most Vital Edges in Minimum Spanning Trees 75 6.1 Introduction. . . 75

6.2 Findingk Most VitalEdges . . . 77

6.3 NC AlgorithmsforFindingtheSingleMostVital Edge. . . 80

6.4 Sequentialand ParallelAlgorithmsfork =2;3 . . . 83

6.4.1 Findingtherst two mostvital edges . . . 83

6.4.2 Findingtherst three mostvital edges . . . 86

(11)

6.5.2 A parallelimplementation . . . 94

6.6 Conclusions . . . 96

7 Findingthe Single Most Vital Edgeon Mesh andHypercube Proces-sor Arrays 99 7.1 Introduction. . . 99

7.2 The Computational Models . . . 100

7.2.1 The2-D mesharray . . . 100

7.2.2 Thehypercubearray . . . 101

7.3 Algorithmson the2-D MeshArray . . . 101

7.3.1 Findingthe singlemostvital edgew.r.t. theMSTproblem . . . 101

7.3.2 Findingthe singlemostvital edgew.r.t. SPs . . . 107

7.4 Algorithmson theHypercubeArray . . . 109

7.5 Conclusions . . . 113

8 Constructing the Spanners of Graphs in Parallel 115 8.1 Introduction. . . 115

8.2 Preliminaries . . . 116

8.3 FindingApproximatet-Spanners . . . 117

8.3.1 Unweighted Graphs . . . 117

8.3.2 WeightedGraphs . . . 120

8.4 NC AlgorithmsforFindingModerate 2t-Spanners . . . 123

8.4.1 Thealgorithm forunweightedgraphs. . . 123

8.4.2 Thealgorithm forweightedgraphs . . . 126

8.5 Conclusions . . . 127

9 Parallel Algorithms for Edge-Coloring 129 9.1 Introduction. . . 129

9.2 Conceptsand Notations . . . 130

9.3 An Edge-Coloring UpdateAlgorithm . . . 131

9.4 A New Edge-ColoringAlgorithm . . . 133

9.4.1 Asimpleversion of theKarlo-Shmoys'algorithm . . . 133

9.4.2 Animproved edge-coloringalgorithm. . . 136

9.5 An ApproximateEdge-ColoringAlgorithm. . . 140

9.5.1 Graphdecomposition . . . 140

9.5.2 Analgorithm forapproximateedge-coloring . . . 142

9.6 Conclusions . . . 145

10 An NC Algorithm for Computing Maximal Interlocking Sets 147 10.1 Introduction. . . 147

10.2 Preliminaries . . . 148

10.3 The Algorithm . . . 149

10.3.1 Thealgorithmic description . . . 149

(12)

11Conclusions and Open Problems 155

(13)

2.1 An illustrationofthe proofof Lemma2.12. . . 32

5.1 An example.. . . 67

9.1 Invertingthe-pathofv

2

aectsthefreecolorofw

1

inafanofv

1 ,and

invertingthe-pathof v

3

aectsthefree colorofz(v

2

) ina fanof v

2 .. 135

(14)
(15)

ANLV Allnearestlargervalue

ANSV Allnearestsmaller value

CC Connected component

CREW Concurrent readand exclusive write

CRCW Concurrent readand concurrentwrite

DAG Directedacyclicgraph

EREW Exclusiveread andexclusivewrite

LCA(x;y) Thelowestcommon ancestor ofx and y

MST Minimumspanningtree

MSF Minimumspanningforest

MWSC Minimumweightedset cover

PRAM Parallelrandom accessmachine

2ECC 2-Edgeconnected component

3ECC 3-Edgeconnected component

2VCC 2-Vertex connectedcomponent

3VCC 3-Vertexconnectedcomponent(triconnectedcomponent)

k MVE Thek mostvital edges

(16)

References

Related documents

The materiality analysis shows that the most important aspects within Aktia’s corporate responsibility are generating added value for stakeholders; stability and

Those empirical analyses were based on data from registered unemployment mainly using reduced form of the stock-flow model implying that the driving force of the matching process

http://openheart.bmj.com/.. Figure 2 Trends in functional variables, LV geometry and biomarker expression following CRT implantation in responders and non-responders. Trends

Based on the extensive usage of ICTs in education the need appeared to unravel the myth that surrounds the use of information and communication technology (ICT) as an aid

Shafik and Bandyopadhyay explore the relation- worsen with high investment rates, such as ship between economic growth and environmen- deforestation and sulfur oxides, tend

Change  management  places  heavy  demands  on  leaders   DQGWKHLUSHUVRQDOTXDOL¿FDWLRQV&RQVHTXHQWO\VNLOOV development  at  both  a  personal  and  managerial  level  is

Our results, based on analysis of dissimilatory nitrite reduc- tase ( nirS ) expression over three sampling seasons, revealed that both denitrification and anammox were

However, TTL is careful to acknowledge that Sally’s embodied freedom only comes through the discipline and hard work that she applies to her dance lessons, just as