Shortest paths on the Web as computing medium, in randomly generated maps

Authors

  • Miguel Casquilho University of Lisbon Author
  • Eliana Costa e Silva CIICESI, ESTG, Polytechnic of Porto, Margaride, 4610-156 Felgueiras, Portugal Author
  • Cristina Lopes CEOS.PP, ISCAP, Polytechnic of Porto, 4465-004 S. Mamede de Infesta, Portugal Author
  • André Espírito Santo Department of Computer Science and Engineering, IST, Universidade de Lisboa, 1049-001 Lisboa, Portugal Author
  • João Luís de Miranda Department of Technologies, ESTG, I. Politécnico de Portalegre (Polytechnic Institute of Portalegre), and CERENA, 7300-555 Portalegre, Portugal Author

DOI:

https://doi.org/10.17013/wjis.v2i4.46

Keywords:

Web-based application, random map, shortest path, Monte Carlo simulation, scientific computing, Engineering education

Abstract

When dealing with routes in maps, the shortest path is the commonest addressed problem, but the topology of the map affects the paths’ behavior in many ways. A study was conducted on random maps, by Monte Carlo simulation, in which the weights are uniformly distributed, in order to assess the impact of these conditions on the shortest paths. We provide a freely accessible webpage, where the user can insert the number of nodes, specify whether it is a directed or undirected graph, and the range of the distribution, to observe the influence of each parameter. We consider several goals: we offer the procedure computation, based on the well-known Dijkstra’s algorithm; we combine the PHP language with a numerical language (Fortran), with the gnuplot graphing utility; and we stress the suggestion of the Internet as a computing medium. The simulation runs on the webpage, thus needing no software installation or special power or matching operating system. This Web application is an example for many other problems, and is implemented on a Linux platform. The study draws attention both to the use of the Web for scientific computing, and to the convenience of this use in scientific publications. We advocate web-based computing in general, as it can use the same programs as classical computing, the programs being always the technical difficulty. In our technological era, this still scarcely explored approach also promotes the transfer of knowledge from academia to industry.

Downloads

Published

2025-12-15

Issue

Section

Regular Issue

Most read articles by the same author(s)