Traversal Graphs: Characterization and Efficient Implementation

نویسندگان

  • Ahmed Abdelmeged
  • Therapon Skotiniotis
  • Panagiotis Manolios
  • Karl Lieberherr
چکیده

Adaptive Programming (AP) provides programmers with a graph abstraction of their OO program’s structure (called a class graph) and encapsulates traversals and computation along traversals as adaptive methods. An adaptive method consists of a selector specification, called a strategy, that selects paths in the class graph, and a behavior definition with advice on nodes that are executed while traversing the selected paths. Any AP implementation faces the following problem: given a strategy, S and a class graph G compute the set of paths in G that satisfy S. We represent the set of valid paths in G as a graph, dubbed a traversal graph. In this paper we give the first characterization of, and a new algorithm for computing, traversal graphs. We describe our new algorithm that is more efficient – the size of the generated traversal graph is in the worst case as large as the traversal graph generated by previous approaches – and more general – our algorithm is defined over general graphs rather than on the class graph directly. We apply our algorithm in an AP setting by transforming class graphs to general graphs. We further show that our algorithm generates a traversal graph that satisfies our characterization.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

External Memory Algorithms For Path Traversal in Graphs

This thesis will present a number of results related to path traversal in trees and graphs. In particular, we focus on data structures which allow such traversals to be performed efficiently in the external memory setting. In addition, for trees and planar graphs the data structures we present are succinct. Our tree structures permit efficient bottom-up path traversal in rooted trees of arbitra...

متن کامل

Void traversal for efficient non-planar geometric routing

Geometric routing provides a scalable and efficient way to route messages in ad hoc networks if extensive routing information is unavailable. Such algorithms require a planar graph to guarantee message delivery. The routing techniques for such guarantee usually center around the traversal of planar faces of the graph. However, in realistic wireless networks existing planarization methods, if at...

متن کامل

Improved external memory BFS implementations ∗

Breadth first search (BFS) traversal on massive graphs in external memory was considered non-viable until recently, because of the large number of I/Os it incurs. Ajwani et al. [3] showed that the randomized variant of the o(n) I/O algorithm of Mehlhorn and Meyer [24] (MM BFS) can compute the BFS level decomposition for large graphs (around a billion edges) in a few hours for small diameter gra...

متن کامل

A Join Operator for Property Graphs

In the graph database literature the term “join” does not refer to an operator combining two graphs, but involves path traversal queries over a single graph. Current languages express binary joins through the combination of path traversal queries with graph creation operations. Such solution proves to be not efficient. In this paper we introduce a binary graph join operator and a corresponding ...

متن کامل

Short Labels by Traversal and Jumping

In this paper, we propose an efficient implicit representation of caterpillar and bounded degree trees of n vertices. Our scheme, called Traversal & Jumping, assigns to the n vertices of any bounded degree tree distinct binary labels of log2 n+O(1) bits in O(n) time such that we can compute adjacency between two vertices only from their labels. We use our result to improve previous known upper ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008