Adapting Prime Number Labeling Scheme for Directed Acyclic Graphs

  • Gang Wu
  • Kuo Zhang
  • Can Liu
  • Juanzi Li
Part of the Lecture Notes in Computer Science book series (LNCS, volume 3882)


Directed Acyclic Graph(DAG) could be used for modeling subsumption hierarchies. Several labeling schemes have been proposed or tailored for indexing DAG in order to efficiently explore relationships in such hierarchy. However few of them can satisfy all the requirements in response time, space, and effect of updates simultaneously. In this paper, the prime number labeling scheme is extended for DAG. The scheme invests intrinsic mapping between integer divisibility and subsumption hierarchy, which simplifies the transitive closure computations and diminishes storage redundancy, as well as inherits the dynamic labeling ability from original scheme. Performance is further improved by introducing some optimization techniques. Our extensive experimental results show that prime number labeling scheme for DAG outperforms interval-based and prefix-based labeling schemes in most cases.


Span Tree Prime Number Direct Acyclic Graph Label Scheme Construction Time 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Postgresql 8.0.3 documentation. available at:
  2. 2.
    Beckett, D.: Scalability and storage: Survey of free software / open source rdf storage systems. Technical Report 1016, ILRT (June 2003),
  3. 3.
    O.C.L. Center. Dewey decimal classification. available at:
  4. 4.
    Christophides, V., Karvounarakis, G., Plexousakis, D., Scholl, M., Tourtounis, S.: Optimizing taxonomic semantic web queries using labeling schemes. Journal of Web Semantics 11(001), 207–228 (2003)Google Scholar
  5. 5.
    Cohen, E., Halperin, E., Kaplan, H., Zwick, U.: Reachability and distance queries via 2-hop labels. SIAM J. Comput. 32(5), 1338–1355 (2003)MathSciNetCrossRefMATHGoogle Scholar
  6. 6.
    Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 2nd edn. The MIT Press, Cambridge (2001)MATHGoogle Scholar
  7. 7.
    Li, Q., Moon, B.: Indexing and querying xml data for regular path expressions. In: Apers, P.M.G., Atzeni, P., Ceri, S., Paraboschi, S., Ramamohanarao, K., Snodgrass, R.T. (eds.) Proceedings of the 27th International Conference on Very Large Data Bases, Roma, Italy, pp. 361–370 (2001)Google Scholar
  8. 8.
    Santoro, N., Khatib, R.: Labelling and implicit routing in networks. Comput. J. 28(1), 5–8 (1985)MathSciNetCrossRefMATHGoogle Scholar
  9. 9.
    Wirth, N.: Type extensions. ACM Trans. Program. Lang. Syst. 10(2), 204–214 (1988)CrossRefMATHGoogle Scholar
  10. 10.
    Wu, X., Lee, M.-L., Hsu, W.: A prime number labeling scheme for dynamic ordered xml trees. In: ICDE, pp. 66–78. IEEE Computer Society, Los Alamitos (2004)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2006

Authors and Affiliations

  • Gang Wu
    • 1
  • Kuo Zhang
    • 1
  • Can Liu
    • 1
  • Juanzi Li
    • 1
  1. 1.Knowledge Engineering Lab, Department of Computer ScienceTsinghua UniversityBeijingP.R. China

Personalised recommendations