Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CS253: Shortest Path (2019)

Jinho D. Choi
November 13, 2019
130

CS253: Shortest Path (2019)

Jinho D. Choi

November 13, 2019
Tweet

Transcript

  1. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPV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QWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Vertex Distance Pair 5 private class VertexDistancePair implements Comparable<VertexDistancePair> { public int vertex; public double distance; public VertexDistancePair(int vertex, double distance) { this.vertex = vertex; this.distance = distance; } @Override public int compareTo(VertexDistancePair p) { double diff = this.distance - p.distance; if (diff > 0) return 1; if (diff < 0) return -1; return 0; } }
  61. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGC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[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's Algorithm 6 public Integer[] getShortestPath(Graph graph, int source, int target) { PriorityQueue<VertexDistancePair> queue = new PriorityQueue<>(); Integer[] previous = new Integer[graph.size()]; double[] distances = new double[graph.size()]; Set<Integer> visited = new HashSet<>(); init(distances, previous, target); queue.add(new VertexDistancePair(target, distances[target])); while (!queue.isEmpty()) { // To be filled. } return previous; }
  62. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPVRNGCUGEQPVCEVVJG1HƂEG QH$TCPF/CPCIGOGPVCVQTUVCPKUMQFOCP"GOQT[GFW 6JGV[RGHCEG)QWF[KUTGUGTXGFHQTVJG'OQT[VTCFGOCTMUCPFPGXGTUJQWNFDGWUGFKPVGZVQTFKURNC[ EQR[;QWPGXGTUJQWNFCVVGORVVQTGPFGTVJG'OQT[NQIQD[V[RKPIVJGNGVVGTUKPCYQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's Algorithm 6 public Integer[] getShortestPath(Graph graph, int source, int target) { PriorityQueue<VertexDistancePair> queue = new PriorityQueue<>(); Integer[] previous = new Integer[graph.size()]; double[] distances = new double[graph.size()]; Set<Integer> visited = new HashSet<>(); init(distances, previous, target); queue.add(new VertexDistancePair(target, distances[target])); while (!queue.isEmpty()) { // To be filled. } return previous; }
  63. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPVRNGCUGEQPVCEVVJG1HƂEG QH$TCPF/CPCIGOGPVCVQTUVCPKUMQFOCP"GOQT[GFW 6JGV[RGHCEG)QWF[KUTGUGTXGFHQTVJG'OQT[VTCFGOCTMUCPFPGXGTUJQWNFDGWUGFKPVGZVQTFKURNC[ EQR[;QWPGXGTUJQWNFCVVGORVVQTGPFGTVJG'OQT[NQIQD[V[RKPIVJGNGVVGTUKPCYQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's Algorithm 6 public Integer[] getShortestPath(Graph graph, int source, int target) { PriorityQueue<VertexDistancePair> queue = new PriorityQueue<>(); Integer[] previous = new Integer[graph.size()]; double[] distances = new double[graph.size()]; Set<Integer> visited = new HashSet<>(); init(distances, previous, target); queue.add(new VertexDistancePair(target, distances[target])); while (!queue.isEmpty()) { // To be filled. } return previous; }
  64. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU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YQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's Algorithm 7 private void init(double[] distances, Integer[] previous, int target) { for (int i=0; i<distances.length; i++) { if (i == target) distances[i] = 0; else { distances[i] = Double.MAX_VALUE; previous[i] = null; } } }
  65. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEU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GPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's Algorithm 7 private void init(double[] distances, Integer[] previous, int target) { for (int i=0; i<distances.length; i++) { if (i == target) distances[i] = 0; else { distances[i] = Double.MAX_VALUE; previous[i] = null; } } }
  66. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPVRNGCUGEQPVCEVVJG1HƂEG QH$TCPF/CPCIGOGPVCVQTUVCPKUMQFOCP"GOQT[GFW 6JGV[RGHCEG)QWF[KUTGUGTXGFHQTVJG'OQT[VTCFGOCTMUCPFPGXGTUJQWNFDGWUGFKPVGZVQTFKURNC[ EQR[;QWPGXGTUJQWNFCVVGORVVQTGPFGTVJG'OQT[NQIQD[V[RKPIVJGNGVVGTUKPCYQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW 8 while (!queue.isEmpty()) { VertexDistancePair u = queue.poll(); visited.add(u.vertex); for (Edge edge : graph.getIncomingEdges(u.vertex)) { int v = edge.getSource(); if (!visited.contains(v)) { double dist = distances[u.vertex] + edge.getWeight(); if (dist < distances[v]) { distances[v] = dist; previous [v] = u.vertex; queue.add(new VertexDistancePair(v, dist)); } } } }
  67. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPVRNGCUGEQPVCEVVJG1HƂEG QH$TCPF/CPCIGOGPVCVQTUVCPKUMQFOCP"GOQT[GFW 6JGV[RGHCEG)QWF[KUTGUGTXGFHQTVJG'OQT[VTCFGOCTMUCPFPGXGTUJQWNFDGWUGFKPVGZVQTFKURNC[ EQR[;QWPGXGTUJQWNFCVVGORVVQTGPFGTVJG'OQT[NQIQD[V[RKPIVJGNGVVGTUKPCYQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW 8 while (!queue.isEmpty()) { VertexDistancePair u = queue.poll(); visited.add(u.vertex); for (Edge edge : graph.getIncomingEdges(u.vertex)) { int v = edge.getSource(); if (!visited.contains(v)) { double dist = distances[u.vertex] + edge.getWeight(); if (dist < distances[v]) { distances[v] = dist; previous [v] = u.vertex; queue.add(new VertexDistancePair(v, dist)); } } } } Complexity?
  68. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKE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HVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's vs A* 9 private void init(double[] distances, Integer[] previous, int target) { for (int i=0; i<distances.length; i++) { if (i == target) distances[i] = 0; else { distances[i] = Double.MAX_VALUE; previous[i] = null; } } }
  69. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGH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NQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra's vs A* 9 private void init(double[] distances, Integer[] previous, int target) { for (int i=0; i<distances.length; i++) { if (i == target) distances[i] = 0; else { distances[i] = Double.MAX_VALUE; previous[i] = null; } } } + heuristic(i, target);
  70. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPVRNGCUGEQPVCEVVJG1HƂEG QH$TCPF/CPCIGOGPVCVQTUVCPKUMQFOCP"GOQT[GFW 6JGV[RGHCEG)QWF[KUTGUGTXGFHQTVJG'OQT[VTCFGOCTMUCPFPGXGTUJQWNFDGWUGFKPVGZVQTFKURNC[ EQR[;QWPGXGTUJQWNFCVVGORVVQTGPFGTVJG'OQT[NQIQD[V[RKPIVJGNGVVGTUKPCYQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW 10 while (!queue.isEmpty()) { VertexDistancePair u = queue.poll(); visited.add(u.vertex); for (Edge edge : graph.getIncomingEdges(u.vertex)) { int v = edge.getSource(); if (!visited.contains(v)) { double dist = distances[u.vertex] + edge.getWeight(); if (dist < distances[v]) { distances[v] = dist; previous [v] = u.vertex; queue.add(new VertexDistancePair(v, dist)); } } } }
  71. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTRTKPVCPFYGDYJKEJYGTGFGXGNQRGFKPECTGHWNEQPUWNVC-

    VKQPYKVJFGCPUCPFWPKVJGCFU&QYPNQCFCDNGNQIQUCPFYQTFOCTMUHQT'OQT[7PKXGTUKV[VJGUEJQQNU CPFOCLQTWPKVUECPDGHQWPFQPVJGYGDCVJVVRKFGPVKV[GOQT[GFW RTKPVITCRJKEUVCPFCTFU CPF JVVRYGDIWKFGGOQT[GFW YGDITCRJKEUVCPFCTFU 6JG'/14;YQTFOCTMKUCHGFGTCNN[TGIKUVGTGF VTCFGOCTM#UCPEVKQPGFKFGPVKƂGTQHVJG7PKXGTUKV[tCUEJQQNQTOCLQTWPKVNQIQVJCVKPENWFGUVJG UJKGNFU[ODQNCPFVJGYQTFOCTM'/14;tUJQWNFCRRGCTQPGCEJRWDNKECVKQP+H[QWYKUJVQJCXGCP KFGPVKƂGT WPKVUKIPCVWTG ETGCVGFURGEKƂECNN[HQT[QWTRTQITCOQTFGRCTVOGPVRNGCUGEQPVCEVVJG1HƂEG QH$TCPF/CPCIGOGPVCVQTUVCPKUMQFOCP"GOQT[GFW 6JGV[RGHCEG)QWF[KUTGUGTXGFHQTVJG'OQT[VTCFGOCTMUCPFPGXGTUJQWNFDGWUGFKPVGZVQTFKURNC[ EQR[;QWPGXGTUJQWNFCVVGORVVQTGPFGTVJG'OQT[NQIQD[V[RKPIVJGNGVVGTUKPCYQTFRTQEGUUKPIQT RCIGNC[QWVRTQITCO0QPGQHVJGNQIQUKUCV[RGFYQTFDWVTCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW 10 while (!queue.isEmpty()) { VertexDistancePair u = queue.poll(); visited.add(u.vertex); for (Edge edge : graph.getIncomingEdges(u.vertex)) { int v = edge.getSource(); if (!visited.contains(v)) { double dist = distances[u.vertex] + edge.getWeight(); if (dist < distances[v]) { distances[v] = dist; previous [v] = u.vertex; queue.add(new VertexDistancePair(v, dist)); } } } } + heuristic(v, target);
  72. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPH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TCVJGTKUURGEKƂECNN[FGUKIPGFXGEVQTCTV 'OQT[VKGTQPGNQIQUUJQWNFTGRTQFWEGQPN[KP'OQT[DNWG 2/5 DNCEMQTYJKVG6JGUJKGNFJGKIJV UJQWNFTGRTQFWEGCVqQTNCTIGT#IGPGTCNTWNGHQTURCEKPICTQWPFCP'OQT[NQIQKUVQKPVGITCVGCP QDXKQWUXKUWCNUGRCTCVKQPtPQFGUKIPGNGOGPVQTVGZVUJQWNFDGPGUVGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW A* Abstract Class 11 public abstract class AStar { public Integer[] getShortestPath(Graph graph, int source, int target) { PriorityQueue<VertexDistancePair> queue = new PriorityQueue<>(); Integer[] previous = new Integer[graph.size()]; double[] distances = new double[graph.size()]; Set<Integer> visited = new HashSet<>(); ... return previous; } } protected abstract double heuristic(int source, int target);
  73. Emory University Logo Guidelines #PKPUVKVWVKQPCUNCTIGCPFXCTKGFCU'OQT[TGSWKTGUCEQPUKUVGPVXKUWCNKFGPVKV[VJCVWPKƂGUKVUXCTKQWU CHƂNKCVGU'OQT[oUEWTTGPVUVCPFCTFUYJKEJJCXGDGGPKPWUGUKPEGTGKPHQTEGVJGWPKSWGEJCTCEVGT CPFSWCNKV[QHGCEJCECFGOKECPFCFOKPKUVTCVKXGWPKVYJKNGUKOWNVCPGQWUN[OCMKPIKVENGCTVJCV'OQT[ UVCPFUDGJKPFGCEJQHVJGO +PCFFKVKQPVQVJGOCKP7PKXGTUKV[ITCRJKEKFGPVKƂGTUOQUVUEJQQNUCPFOCLQTWPKVUJCXGVJGKTQYP EQORNGOGPVCT[UGVQHKFGPVKV[ITCRJKEUHQTR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VGFYKVJ'OQT[NQIQU 'OQT[oURTKOCT[EQNQTUCTG'OQT[DNWG 2/5 CPF[GNNQY 2/5 'OQT[7PKXGTUKV[YQTFOCTMU ECPDGTGRTQFWEGFKP'OQT[DNWG 2/5 DNCEMQTYJKVGQPCP'OQT[DNWGQTFCTMDCEMITQWPF YYYKFGPVKV[GOQT[GFW JVVRYGDIWKFGGOQT[GFW Dijkstra’s Algorithm 12 public class Dijkstra extends AStar { @Override protected double heuristic(int source, int target) { return 0; } }