Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve this please in java, here is the data in the file that it must read, and dont use map or array list, and the

solve this please in java, here is the data in the file that it must read, and dont use map or array list, and the time complixity of the dijekstra algorithm must be E log V, with explenation of every step and code please, this is the input data (50147
Jerusalem, 31.7789,35.2256
Washington, 38.8951,-77.0369
Ottawa, 45.4215,45.4215
Mexico City, 19.4333,-99.1333
Braslia,-15.7939,-47.8828
Buenos Aires, -34.6033,-58.3817
London, 51.5072,-0.1275
Paris, 48.8567,2.3522
Berlin, 52.5200,13.4050
Rome, 41.8933,12.4828
Madrid, 40.4169,-3.7033
Moscow, 55.7558,37.6172
Beijing, 39.9067,116.3975
Tokyo, 35.6897,139.6922
Seoul, 37.5600,126.9900
New Delhi, 28.6100,77.2300
Canberra, -35.2931,149.1269
Wellington, -41.2889,174.7772
Bangkok, 13.7525,100.4942
Jakarta, -6.1750,106.8275
Kuala Lumpur, 3.1478,101.6953
Hanoi, 21.0000,105.8500
Manila, 14.5958,120.9772
Riyadh, 24.6333,46.7167
Tehran, 35.6892,51.3889
Baghdad, 33.3153,44.3661
Cairo, 30.0444,31.2358
Pretoria, -25.7461,28.1881
Nairobi, -1.2864,36.8172
Accra, 5.5500,-0.2000
Addis Ababa, 9.0300,38.7400
Kampala, 0.3136,32.5811
Algiers, 36.7539,3.0589
Khartoum, 15.6000,32.5000
Lagos, 6.4550,3.3841
Tripoli, 32.8872,13.1914
Rabat, 34.0209,-6.8416
Tunis, 36.8064,10.1817
Athens, 37.9842,23.7281
Ankara, 39.9300,32.8500
Bangui, 4.3733,18.5628
Brussels, 50.8467,4.3525
Vienna, 48.2083,16.3725
Stockholm, 59.3294,18.0686
Oslo, 59.9133,10.7389
Helsinki, 60.1708,24.9375
Copenhagen, 55.6761,12.5683
Reykjavik, 64.1467,-21.9400
Havana, 23.1367,-82.3589
Port-au-Prince, 18.5333,-72.3333
Jerusalem, Washington
Washington, Ottawa
Ottawa, Mexico City
Mexico City, Braslia
Braslia, Buenos Aires
Buenos Aires, London
London, Paris
Paris, Berlin
Berlin, Rome
Rome, Madrid
Madrid, Moscow
Moscow, Beijing
Beijing, Tokyo
Tokyo, Seoul
Seoul, New Delhi
New Delhi, Canberra
Canberra, Wellington
Wellington, Bangkok
Bangkok, Jakarta
Jakarta, Kuala Lumpur
Kuala Lumpur, Hanoi
Hanoi, Manila
Manila, Riyadh
Riyadh, Tehran
Tehran, Baghdad
Baghdad, Cairo
Cairo, Pretoria
Pretoria, Nairobi
Nairobi, Accra
Accra, Addis Ababa
Addis Ababa, Kampala
Kampala, Algiers
Algiers, Khartoum
Khartoum, Lagos
Lagos, Tripoli
Tripoli, Rabat
Rabat, Tunis
Tunis, Athens
Athens, Ankara
Ankara, Bangui
Bangui, Brussels
Brussels, Vienna
Vienna, Stockholm
Stockholm, Oslo
Oslo, Helsinki
Helsinki, Copenhagen
Copenhagen, Reykjavik
Reykjavik, Havana
Havana, Port-au-Prince
Port-au-Prince, Jerusalem
Jerusalem, Ottawa
Washington, Mexico City
Ottawa, Braslia
Mexico City, Buenos Aires
Braslia, London
Buenos Aires, Paris
London, Berlin
Paris, Rome
Berlin, Madrid
Rome, Moscow
Madrid, Beijing
Moscow, Tokyo
Beijing, Seoul
Tokyo, New Delhi
Seoul, Canberra
New Delhi, Wellington
Canberra, Bangkok
Wellington, Jakarta
Bangkok, Kuala Lumpur
Jakarta, Hanoi
Kuala Lumpur, Manila
Hanoi, Riyadh
Manila, Tehran
Riyadh, Baghdad
Tehran, Cairo
Baghdad, Pretoria
Cairo, Nairobi
Pretoria, Accra
Nairobi, Addis Ababa
Accra, Kampala
Addis Ababa, Algiers
Kampala, Khartoum
Algiers, Lagos
Khartoum, Tripoli
Lagos, Rabat
Tripoli, Tunis
Rabat, Athens
Tunis, Ankara
Athens, Bangui
Ankara, Brussels
Bangui, Vienna
Brussels, Stockholm
Vienna, Oslo
Stockholm, Helsinki
Oslo, Copenhagen
Helsinki, Reykjavik
Copenhagen, Havana
Reykjavik, Port-au-Prince
Havana, Washington
Port-au-Prince, Ottawa
Jerusalem, Mexico City
Washington, Braslia
Ottawa, Buenos Aires
Mexico City, London
Braslia, Paris
Buenos Aires, Berlin
London, Rome
Paris, Madrid
Berlin, Moscow
Rome, Beijing
Madrid, Tokyo
Moscow, Seoul
Beijing, New Delhi
Tokyo, Canberra
Seoul, Wellington
New Delhi, Bangkok
Canberra, Jakarta
Wellington, Kuala Lumpur
Bangkok, Hanoi
Jakarta, Manila
Kuala Lumpur, Riyadh
Hanoi, Tehran
Manila, Baghdad
Riyadh, Cairo
Tehran, Pretoria
Baghdad, Nairobi
Cairo, Accra
Pretoria, Addis Ababa
Nairobi, Kampala
Accra, Algiers
Addis Ababa, Khartoum
Kampala, Lagos
Algiers, Tripoli
Khartoum, Rabat
Lagos, Tunis
Tripoli, Athens
Rabat, Ankara
Tunis, Bangui
Athens, Brussels
Ankara, Vienna
Bangui, Stockholm
Brussels, Oslo
Vienna, Helsinki
Stockholm, Copenhagen
Oslo, Reykjavik
Helsinki, Havana
Copenhagen, Port-au-Prince) the first line has the number of cities and the number of adjecents and follows the cities with their Longitude and latitude values , and follows the adjecents to create the graph
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions