Find Jobs
Hire Freelancers

for an assignment in social analytics, I need help finding shortest path in a graph

$12-30 SGD

Slutfört
Publicerad ungefär sex år sedan

$12-30 SGD

Betalning vid leverans
[Question 1] Shortest-Path and Minimum Spanning Tree Fort canning park is just beside SMU, and it is where many SMU students jog to destress. In this question, you are provided with a data file that describes the graph as shown on the right (edge weights are ignored in the figure). The first line describes the number of vertices num-vert and the number of edges num-edge. Each of the next num-vert lines contains two decimals, which are the latitude and longitude of each vertex. This is then followed by num-edge lines on edge weights; each line contains a pair of vertex indices and the distance in meters between the two vertices, as the weight of the edge. You are given a Python code to read the data file and generate a figure like the one on the right. Each of you will be assigned with a vertex v to start with, please (1) find the shortest paths from v to all other vertices; and (2) construct a minimum spanning tree rooted at v Your output (name it '[login to view URL]') should be in the following format: The first line describes the distances from v to any vertex including v, separated by tab '\t', in the sequence of vertex indices. The distances should be all integers. The second line is a post-order traversal of the minimum spanning tree rooted at v. Child with smaller index should appear first. Vertices are separated by tab '\t'. No other information should be included, just the two lines mentioned above. [Question 2] Best Restaurant in a neighborhood In this exercise, you are employed by a F&B company to investigate existing restaurants in a neighborhood. With the web crawling skills that you have learnt in class, you are to answer the following questions from the F&B company with data from foursquare.com. (1) What are the 5 most commented restaurants in the area? (2) What are the 5 best restaurants in the area, by looking at the overall ratings? (3) What are the 5 best restaurants in the area, by judging from the comments? Each of you are given a different neighborhood to work with, which is a circle centered at one MRT station with radius 400 meters (If you feel there are too few restaurants, you may increase this limit to 800 meters). You need to submit both codes and results (the set of restaurants you crawled, and the set of comments you crawled).
Project ID: 16314692

Om projektet

3 anbud
Distansprojekt
Senaste aktivitet sex år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
I am a python developer and I have good experience in machine learning, I can solve this problem with the best result.
$30 SGD Om 2 dagar
5,0 (12 omdömen)
3,9
3,9
3 frilansar lägger i genomsnitt anbud på $44 SGD för detta uppdrag
Använd avatar
With my prior experience as Data Scientist in IT industry I would be able to deliver the project within time and help you in any further queries.
$47 SGD Om 1 dag
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för SINGAPORE
Singapore, Singapore
5,0
1
Verifierad betalningsmetod
Medlem sedan juli 9, 2013

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.