V18n1a14 (1) Ingles
V18n1a14 (1) Ingles
V18n1a14 (1) Ingles
strategies use this, for example, [18] an algorithm an algorithm that eliminates edges that are not
is proposed to construct hierarchies of networks necessary to solve this problem.
and run queries on it. The authors reach shorter
execution times and show the feasibility of the The above, remove or do not consider
proposal. Another proposal introduces a similar information that is not necessary mechanisms to
proposed by Gutman [1] approach. The authors solve a specific problem, but it may be necessary
use relevant nodes (transit nodes) for long distance to solve other problems.
travel, pre-calculating the optimum paths between In the case of finding optimal paths, algorithms
each pair of nodes and relevant from each source that make use of reduced graphs or solution search
and target potential to these relevant nodes. space, do not guarantee obtaining optimal in all
In [6] the hierarchy of the road network to cases.
partition the network into areas and precompute the Because of this situation, in this paper an
optimum paths in these areas is used. This algorithm graph reduction is proposed without loss
approach utilizes the fact that some streets are of information. The proposal has a flexible way to
busier than others and some drivers prefer to travel specify how you want to reduce the graph;
the longest streets. therefore it can be used in solving various types of
problems, contributing to obtaining optimal
In [5] an approach that uses only the edges that
responses in less time.
connect important nodes is proposed. They are
also designed algorithms that mimic human The paper is organized as follows: first the
behavior using the hierarchy of the road network theoretical foundations used in the proposed
[14]. This approach is based on the idea that to reduction algorithm are presented, then the
calculate long routes (in large networks), only the reduction algorithm is described and pseudocode
higher-level streets (highways, avenues, etc.) are thereof is presented below show the validity of the
needed. This consideration helps to reduce the reduction algorithm is performed and finally the
response time of the algorithm, however, does not conclusions are stated.
guarantee the optimum in all cases. 2. Theoretical Foundations
These mechanisms can be viewed as
algorithms for graph reduction finding optimal paths For the development of this work the following
and consequently to obtain faster response times. conceptual framework is used.
Moreover, the graph reduction has been applied Definition 1.A graph or undirected graph 𝐺 =
in other areas, such as: (𝐺, 𝐺) is defined as a nonempty vertex finite 𝐺 set
and and a multiset 𝐺 of edges, where each edge
- Workflow networks. A method used to remove
𝐺𝐺, 𝐺𝐺 is an unordered pair of vertices (𝐺𝐺, 𝐺𝐺 ∈
structural conflicts based on the graph
𝐺). In this case we say that 𝐺𝐺 and 𝐺𝐺 are
reduction. This method is to identify certain
adjacent. Optionally an edge may have an
structures (eg, cycles) and simplified as shown
associated value that identifies and a list of
in [12, 13, 17]. In [11] a set of rewrite rules that
attributes. When 𝐺 elements have multiplicity one,
reduces a network is proposed workflow.
the graph is called a simple graph.
- Computer networks. In [2] a method called
Network Graph Reduction is introduced, in Definition 2. a graph weighted as a structure 𝐺
which the reduction process is accomplished = (𝐺, 𝐺, 𝐺𝐺), which is defined:
by removing the edges congested. In [3, 19, 20]
- V represents the set of vertices of the graph.
you can be appreciated various models to
reduce graphs. However, in [10] it shows that - E represents the multiset of edges in the graph.
these models still lack the performance needed - The 𝐺𝐺 function: 𝐺 → ℝ + makes it correspond
for a quick response. These authors propose to each edge 𝐺𝐺, 𝐺𝐺 a positive real value
called cost, whose interpretation is the cost of
going from vertex 𝐺𝐺 to 𝐺𝐺 vertex.
- t, variable representing the average response - Two vertices are in the same class of
of an algorithm A on a graph G solved the refined partition if and only if:
problem empirical time P. - They are in the same class 𝐺.
- hardware, variable representing the hardware - They are interior vertices.
features that are available.
- software, variable representing the algorithm A
on a graph G for the solution of the problem P.
𝐺 can define a function that the input
(ℎ 𝐺𝐺𝐺𝐺𝐺𝐺𝐺, 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺, 𝐺𝐺𝐺𝐺) returns the
value defined 𝐺 average empirical time response,
that is,
3. graph reduction algorithm Fig. 3. Example partition refinement using the inside and
outside corner concepts. In the top graph it can be seen
Thereafter, when the original graph is that the vertices 2 and 7 are outside; for each of said
mentioned, it is referring to the graph that is input vertices a class is created in the new partition
iteration is running. This graph can be different from
- If a vertex is outside, a new class
the existing before executing the reduction
containing only said vertex is created.
algorithm for the first time.
The reduction algorithm reduces a graph In Figure 3 is illustrated with an example using
designed without any loss of information in the the definition of inner and outer apex to refine the
process, contributing to analysis on small and get partition algorithm is input.
the same results obtained in the original graph For each class of refined partition a vertex is
graph. In addition, the fact that there is no loss of created in the reduced graph. If the cardinality is
information makes possible its use in reducing greater than one class, the vertex is created is
various types of graphs. considered small; otherwise it is considered not
reduced.
The proposal takes as input a graph and a
partition of the vertices of the input graph. However, Algorithm 1: 𝐶𝑜𝑛𝑠𝑡𝑟𝑢𝑖𝑟𝑉𝑒𝑟𝑡𝑖𝑐𝑒𝑠𝑅𝑒𝑑𝑢𝑐𝑖𝑑𝑜𝑠
it may be necessary to refine this partition; since for Entry: A partition refined 𝑃=
certain analyzes, for example the search optimal {𝐴1, 𝐴2, ..., 𝐴𝑠}.
paths, and obtain equal to those obtained in the Exit: The set of vertices formed by 𝐺 𝐺𝐺
original graph results, it is necessary that in the vertices.
reduced graph there are no pairs of vertices that
1. 𝑉𝑟 = {}
are adjacent and in turn reduced. To help ensure
this purpose, Definition 6 was introduced. 2. For all 𝐺𝐺 ∈ 𝐺
The first step of reduction algorithm consists of 3. 𝐴𝑑𝑖𝑐𝑖𝑜𝑛𝑎𝑟 (𝑉𝑟, 𝑂𝑏𝑡𝑒𝑛𝑒𝑟𝑁𝑜𝑚𝑏𝑟𝑒 (𝐴𝑖))
refining the partition that is input said algorithm. To 4. End For
do this follow the following strategy: 5. return 𝐺𝐺
Furthermore, the use of ObtenerNombre vertices belonging to the class in question and
function is proposed (see Step 3 of Algorithm 1) existing edges between said vertices in the original
from a kind of the partition, returns a handle to be graph is then created. To create the information
associated with said vertex. If the class has embedded, for each edge of the original graph
cardinality greater than one, the function will return incident on vertices which belong to the class of the
the attribute value used to create the class; if the partition, a quadruple is added to ψ𝐺𝐺 conjunction
cardinality is one, the identifier corresponding to the with information of the same (see Definition 3) and
class in the original graph vertex is returned. The each edge of the graph original exits a vertex class
pseudocode for creating vertices of the reduced towards an apex which does not belong to that
graph shown in Algorithm 1. class in a quadruple ψ𝐺𝐺𝐺 representing the edge
The edges of the reduced graph is created from in question is added.
the classes of the partition and refined the original
graph. For this purpose each pair of classes algorithm 3: 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
partition is analyzed; if there is an edge between Entry: A partition 𝐺 = (𝐺1, 𝐴2, ..., 𝐴𝑠) and reduced
two vertices belonging to different classes, it is 𝐺 = (𝑉 graph, 𝐸, 𝑓, 𝑅)
added to the reduced graph. As you are adding to Exit: The set of rewrite rules 𝐺 1. 𝐺 = {} 2. For
the reduced graph edges must be updated 𝐺𝐺 the all 𝐺𝐺 ∈ 𝐺, 𝐺 = 1. 𝐺 such that | 𝐺𝐺 | > 1 to
cost function of the reduced graph 𝐺𝐺 be returned 3. 𝐺𝑖 = ({𝑂𝑏𝑡𝑒𝑛𝑒𝑟𝑁𝑜𝑚𝑏𝑟𝑒 (𝐴𝑖)}, {}), 𝑉𝑗 = 𝐴𝑖,
as output reduction algorithm. The pseudocode for 𝐸𝑗 = {}
creating the edges of the reduced graph is shown
in Algorithm 2. 4. For all 𝐺𝐺, 𝐺𝐺 ∈ 𝐺𝐺, 𝐺 ≠ 𝐺 do
5. Yes (𝐺𝐺, 𝐺𝐺) ∈ 𝐺 then
algorithm 2: 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺
6. 𝐴𝑑𝑖𝑐𝑖𝑜𝑛𝑎𝑟 (𝐸𝑗, 𝑂𝑏𝑡𝑒𝑛𝑒𝑟𝐴𝑟𝑖𝑠𝑡𝑎 (𝐺, 𝑣𝑚, 𝑣𝑛))
Entry: A partition 𝐺 = {𝐺1, 𝐺2, ..., 𝐺𝐺} and
reduced 𝐺 = graph (𝐺, 𝐺, 𝐺, 𝐺) 7. 𝑓𝑗 (𝑣𝑚, 𝑣𝑚, 𝑣𝑛) = 𝑓 (𝑣𝑚, 𝑣𝑚, 𝑣𝑛)
Exit: The set of edges 𝐺𝐺 8. End yes
1. For all 𝐺𝐺 ∈ 𝐺𝐺, 𝐺𝐺 ∈ 𝐺𝐺, 𝐺 ≠ 𝐺; 9. Yes 𝐺𝐺 is then reduced 𝐺
𝑖, 𝑗 = 1. 𝑠 do 10. For all 𝐺𝐺 ∈ 𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺𝐺 (𝐺, 𝐺𝐺) to
2. 𝑣𝑖 = 𝑂𝑏𝑡𝑒𝑛𝑒𝑟𝑁𝑜𝑚𝑏𝑟𝑒 (𝐴𝑖) 11. 𝐺𝐺 (𝐺𝐺, 𝐺𝐺, 𝐺𝐺) = 𝐺 (𝐺𝐺, 𝐺𝐺, 𝐺𝐺)
12. end to
3. 𝑣𝑗 = 𝑂𝑏𝑡𝑒𝑛𝑒𝑟𝑁𝑜𝑚𝑏𝑟𝑒 (𝐴𝑗)
13. End Yes
4. Yes (𝐺𝐺, 𝐺𝐺) ∈ 𝐺 then
14. end to
5. 𝐴𝑑𝑖𝑐𝑖𝑜𝑛𝑎𝑟 (𝐸𝑟, 𝑣𝑖, 𝑣𝑗) 15. 𝑅𝑗 = 𝑂𝑏𝑡𝑒𝑛𝑒𝑟𝑅 (𝑉𝑗, 𝑅) {Gets rewrite rules
6. 𝑓 (𝑣𝑖, 𝑣𝑖, 𝑣𝑗) = 𝑓 (𝑒𝑚, 𝑒𝑚, 𝑒𝑛) associated 𝑉𝑗}
7. End yes 16. 𝐺𝑗 = (𝑉𝑗, 𝐸𝑗, 𝑓𝑗, 𝑅𝑗)
8. end to 17. For all 𝐺𝐺 ∈ 𝐺𝐺 do
9. return 𝐺𝐺
18. 𝑎𝑑𝑦 = 𝐴𝑟𝑖𝑠𝑡𝑎𝑠𝑄𝑢𝑒𝐸𝑛𝑡𝑟𝑎𝑛 (𝑣𝑘, 𝐺 [𝑣𝑘] - 𝑉𝑗)
To construct the rewriting rules of the reduced 19. For all 𝐺 ∈ 𝐺𝐺𝐺 do
graph is part of the definition 3. a rule is created for 20. 𝐴𝑑𝑖𝑐𝑖𝑜𝑛𝑎𝑟 (ψ𝑖𝑛, (𝑣, 𝑓 (𝑣, 𝑣, 𝑣𝑘), 𝑓 (𝑣, 𝑣, 𝑣𝑘),
each vertex reduced (or for each class of the
𝑣𝑘))
partition having cardinality greater than one).
21. end to
First, the graph is created 𝐺𝐺; it consists of a
vertex representing the corresponding class of 22. 𝑎𝑑𝑦 = 𝐴𝑟𝑖𝑠𝑡𝑎𝑠𝑄𝑢𝑒𝑆𝑎𝑙𝑒𝑛 (𝑣𝑘, 𝐺 [𝑣𝑘] - 𝑉𝑗)
refined partition. the 𝐺𝐺 graph formed by all 23. For all 𝐺 ∈ 𝐺𝐺𝐺 do
∃𝑣𝑘, 𝑣𝑗 ∈ 𝐸 → 𝑣𝑘, 𝑓𝑐𝑣𝑘, 𝑣𝑗, 𝑓𝑐𝑣𝑘, 𝑣𝑗, 𝑣𝑗 ∈ ψ𝑖𝑛. It associated vertex 𝐺 ∈ 𝐺𝐺 on 𝐺𝐺 graph, a graph
For all interior vertices (𝐺𝐺), you create is obtained 𝐺𝐺 '= (𝐺𝐺', 𝐺𝐺 '𝐺𝐺', 𝐺𝐺 ') and the
embedded information containing the edges following is true:
incident on them from the outer vertices which Be 𝐺𝐺 ∈ 𝐺𝐺, ∀ 𝐺𝐺 ∈ 𝐺𝐺 such that 𝐺𝐺 and 𝐺𝐺
belong to the same equivalence class belong to the same class of 𝐺, (𝐺𝐺, 𝐺𝐺) ∈ 𝐺 →
(𝑣𝑗 - 𝑉𝑗). Note that 𝑣𝑗 denotes the class 𝑃 (𝑣𝑖, 𝑣𝑘) ∈ 𝐸𝑟 '.
containing 𝑣𝑗.
Demonstration:Is (𝐺𝐺, 𝐺𝐺) ∈ 𝐺 such that 𝐺𝐺,
2. Be 𝐺𝐺 ∈ 𝐺𝐺, ∀ 𝐺𝐺 ∈ (𝐺𝐺 - 𝐺𝐺) is satisfied
𝐺𝐺 ∈ [𝐺], suppose (𝐺𝐺, 𝐺𝐺) ∉ 𝐺𝐺 'after applying
that
the rule associated to vertex 𝐺𝐺 𝐺 reduced. Note
∃𝑣𝑗, 𝑣𝑘 ∈ 𝐸 → 𝑣𝑘, 𝑓𝑐𝑣𝑘, 𝑣𝑗, 𝑓𝑐𝑣𝑘, 𝑣𝑗, 𝑣𝑗 ∈ ψ𝑜𝑢𝑡. that if there is an edge between a vertex of a graph
For all interior vertices (𝐺𝐺), you create and one 𝐺𝐺 graph 𝐺𝐺, said vertices belong to the
embedded information containing the edges same equivalence class.
incident on the outer corners of the same When a rule is applied 𝐺𝐺 graph 𝐺𝐺 = ({𝐺𝐺},
equivalence class (𝐺𝐺 - 𝐺𝐺) and leaving the {}) is replaced by the graph 𝐺𝐺 and connects with
vertices of the graph 𝐺𝐺. 𝐺𝐺 (𝐺 - 𝐺𝐺) as specified in ψ𝐺𝐺 and ψ𝐺𝐺𝐺. Is 𝐺𝐺
The postcondition check is that 𝐺𝐺 is reduced
from 𝐺 graph. In other words, that from 𝐺𝐺 reduced ∈ 𝐺𝐺, ∀ 𝐺𝐺 ∈ ([𝐺𝐺] - 𝐺𝐺), note 𝐺𝐺 ∈ [𝐺𝐺] - 𝐺𝐺
graph, you can get the original graph 𝐺. → 𝐺𝐺 ∈ (𝐺𝐺 - {𝐺𝐺}):
Theorem 1. Sea 𝐺𝐺 = (𝐺𝐺, 𝐺𝐺, 𝐺𝐺, 𝐺𝐺) The graph reduction algorithm presented here
reduced from the graph 𝐺 = (𝐺, 𝐺, 𝐺, 𝐺) and 𝐺 ensures that no information is lost in the reduction
partition graph if the rewrite rule applies process, for it using a graph rewriting mechanism
is made. Also it can be used to solve the problem
𝑟𝑖 = ({𝑣𝑖}, φ), 𝑉𝑗, 𝐸𝑗, 𝑓𝑗, 𝑅𝑗, ψ𝑖𝑛, ψ𝑜𝑢𝑡, 𝑟𝑖 ∈ 𝑅𝑟, of finding optimal paths.
Using graphs can be reduced considerably 10. Li, YL, Li, JY, & Chen, WB (2007).An efficient tile-
decrease the response time graph algorithms, based ECO routing router using graph reduction and
thereby ensuring the efficiency. In addition, overall enhanced routing flow. IEEE Transactions on
Computer-Aided Design of
reduction, scalability is ensured relative to the size
Integrated Circuits and Systems, 26 (2), 345-358.
of the graph on which the analysis is performed.
11. Lin, H., Zhao, Z., Li, H., & Chen, Z. (2002).A novel
The generality of the algorithm proposed graph reduction algorithm to Identify structural
reduction lies in the possibility of its application in conflicts. 35th Annual Hawaii International
Conference on System Sciences, Big Island, Hawaii
different types of networks, as well as the Rational
1-10.
Design in Mechanical Engineering. References 12. Liu, Q., Cao, B., & Zhao, Y. (2010).An improved
method for verification workflow model based on
1. Bast, H., Funke, S., Sanders, P., & Schultes, D.
Petri net reduction. 2nd IEEE International
(2007). Fast Routing in Road Networks With Transit Conference on Information Management and
Nodes. Science, 316 (5824), 566-566. Engineering (Icime), Chengdu, China, 252-256.
2. Casetti, C., Lo Cigno, R., Mellia, M., Munafo, M., 13. Lu, K. & Liu, Q. (2007).An algorithm combining
& Zsoka, Z. (2003).A new class of QoS routing graph-reduction and graph-search workflow graphs
strategies based on network graph reduction. for verification. 11th International Conference on
Computer Networks, 41 (4), 475-487. Computer Supported Cooperative Work in Design,
3. Cong, J., Fang, J., & Khoo, KY (1999).An implicit Melbourne, Australia, 772-776.
connection graph maze routing algorithm for ECO 14. Pfoser, D., Efentakis, A., Voisard, A., & Wenk,
routing. 1999 IEEE / ACM International Conference C. (2009). Exploiting road network properties in efficient
on Computer-Aided Design, San Jose, CA, USA, shortest path computation (TR-09-007). Berkeley, CA,
163-167. USA: International Computer
4. Dijkstra, EW (1959).A Note on Two Problems in Science Institute.
Connexion With Graphs. Numerische Mathematik, 1 15. Rodriguez-Puente, R. & Lazo-Cortés, MS
(1), 269-271. (2013).Algorithm for Shortest Path search in
5. Geisberger, R. Sanders, P., Schultes, D., & Geographic Information Systems by using reduced
Delling, D. (2008).Contraction hierarchies: Faster graphs. SpringerPlus, 2, Art. No.291.
and Simpler hierarchical routing in road networks. 16. Rodriguez-Puente, R., Marrero-Osorio, SA, &
7th International Conference on Experimental Lazo-Cortés, MS (2012).Applying a graph reduction
Algorithms (WEA'08), Massachusetts, USA, 319- algorithm to the method of the dichromatic Grafos.
333. Mechanical Engineering, 15 (2), 158-169.
6. Gonzalez, H., Han, J., Li, X., Myslinska, M., & 17. Sadiq, W. & Orlowska, ME (2000).Analyzing
Sondag, JP (2007).Adaptive fastest path process models using graph reduction techniques.
computation on a road network: a traffic mining Information systems, 25 (2), 117-134.
approach. 33rd International Conference on Very 18. Sanders, P. & Schultes, D. (2005).Highway
Large Data Bases (VLDB'07), Vienna, Austria, 794- hierarchies hasten exact shortest path queries. That
805. Algorithms-2005, Lecture Notes in Computer
7. Gutman, RJ (2004).Reach-Based Routing: A New Science, 568-579.
Approach to Shortest Path Algorithms Optimized for 19. Xing, Z. & Kao, R. (2002).Shortest path search
Road Networks. Proceedings of the Sixth Workshop using piecewise linear cost tiles and propagation.
on Algorithm Engineering and Experiments and the IEEE Transactions on Computer-Aided Design of
First Workshop on Analytic Algorithmics and Integrated Circuits and Systems, 21 (2), 145-158.
Combinatorics, New Orleans, LA, USA, 100-111.
20. Zheng, SQ, Lim, JS, & Iyengar, SS (1996).Avoiding
8. Hoare, CAR (1969).An axiomatic basis for computer obstacle-finding shortest paths using graphs implicit
programming. Communications of the ACM, 12 (10), connection. IEEE Transactions on Computer-Aided
576-580. Design of Integrated Circuits and Systems, 15 (1),
9. Janssens, D. & Rozenberg, G. (1982).Graph 103-110.
grammars With embedding-controlled
neighborhood. Theoretical Computer Science, 21
(1), 55-74.