Answered step by step
Verified Expert Solution
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
Jerusalem,
Washington,
Ottawa,
Mexico City,
Braslia
Buenos Aires,
London,
Paris,
Berlin,
Rome,
Madrid,
Moscow,
Beijing,
Tokyo,
Seoul,
New Delhi,
Canberra,
Wellington,
Bangkok,
Jakarta,
Kuala Lumpur,
Hanoi,
Manila,
Riyadh,
Tehran,
Baghdad,
Cairo,
Pretoria,
Nairobi,
Accra,
Addis Ababa,
Kampala,
Algiers,
Khartoum,
Lagos,
Tripoli,
Rabat,
Tunis,
Athens,
Ankara,
Bangui,
Brussels,
Vienna,
Stockholm,
Oslo,
Helsinki,
Copenhagen,
Reykjavik,
Havana,
PortauPrince,
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, PortauPrince
PortauPrince, 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, PortauPrince
Havana, Washington
PortauPrince, 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, PortauPrince 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started