Skip to main content

Finding the Smallest H-Subgraph in Real Weighted Graphs and Related Problems

  • Conference paper
Automata, Languages and Programming (ICALP 2006)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4051))

Included in the following conference series:

Abstract

Let G be a graph with real weights assigned to the vertices (edges). The weight of a subgraph of G is the sum of the weights of its vertices (edges). The MIN H-SUBGRAPH problem is to find a minimum weight subgraph isomorphic to H, if one exists. Our main results are new algorithms for the MIN H-SUBGRAPH problem. The only operations we allow on real numbers are additions and comparisons. Our algorithms are based, in part, on fast matrix multiplication.

For vertex-weighted graphs with n vertices we obtain the following results. We present an O(n t(ω,h)) time algorithm for MIN H-SUBGRAPH in case H is a fixed graph with h vertices and ω< 2.376 is the exponent of matrix multiplication. The value of t(ω,h) is determined by solving a small integer program. In particular, the smallest triangle can be found in O(n 2 + 1/(4 − ω)) ≤o(n 2.616) time, the smallest K 4 in O(n ω + 1) time, the smallest K 7 in O(n 4 + 3/(4 − ω)) time. As h grows, t(ω,h) converges to 3h/(6-ω) < 0.828h. Interestingly, only for h = 4,5,8 the running time of our algorithm essentially matches that of the (unweighted) H-subgraph detection problem. Already for triangles, our results improve upon the main result of [VW06]. Using rectangular matrix multiplication, the value of t(ω,h) can be improved; for example, the runtime for triangles becomes O(n 2.575). We also present an algorithm whose running time is a function of m, the number of edges. In particular, the smallest triangle can be found in O(m (18 − 4ω)/(13 − 3ω)) ≤o(m 1.45) time.

For edge-weighted graphs we present an O(m 2 − 1/k logn) time algorithm that finds the smallest cycle of length 2k or 2k-1. This running time is identical, up to a logarithmic factor, to the running time of the algorithm of Alon et al. for the unweighted case. Using the color coding method and a recent algorithm of Chan for distance products, we obtain an O(n 3/logn) time randomized algorithm for finding the smallest cycle of any fixed length.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alon, N., Naor, M.: Derandomization, witnesses for Boolean matrix multiplication and construction of perfect hash functions. Algorithmica 16, 434–449 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  2. Alon, N., Yuster, R., Zwick, U.: Color-coding. Journal of the ACM 42, 844–856 (1995)

    Article  MATH  MathSciNet  Google Scholar 

  3. Alon, N., Yuster, R., Zwick, U.: Finding and counting given length cycles. Algorithmica 17, 209–223 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  4. Bender, M., Farach-Colton, M., Pemmasani, G., Skiena, S., Sumazin, P.: Lowest common ancestors in trees and directed acyclic graphs. J. Algorithms 57(2), 75–94 (2005)

    Article  MATH  MathSciNet  Google Scholar 

  5. Chan, T.M.: All-Pairs Shortest Paths with Real Weights in O(n 3/logn) Time. In: Dehne, F., López-Ortiz, A., Sack, J.-R. (eds.) WADS 2005. LNCS, vol. 3608, pp. 318–324. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  6. Chiba, N., Nishizeki, L.: Arboricity and subgraph listing algorithms. SIAM Journal on Computing 14, 210–223 (1985)

    Article  MATH  MathSciNet  Google Scholar 

  7. Coppersmith, D.: Rectangular matrix multiplication revisited. Journal of Complexity 13, 42–49 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  8. Coppersmith, D., Winograd, S.: Matrix multiplication via arithmetic progressions. J. Symbol. Comput. 9, 251–280 (1990)

    Article  MATH  MathSciNet  Google Scholar 

  9. Downey, R.G., Fellows, M.R.: Fixed-parameter tractability and completeness II. On completeness for W[1] 141(1-2), 109–131 (1995)

    MATH  MathSciNet  Google Scholar 

  10. Eisenbrand, F., Grandoni, F.: On the complexity of fixed parameter clique and dominating set. Theoret. Comput. Sci. 326(1-3), 57–67 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  11. Feige, U., Kortsarz, G., Peleg, D.: The Dense k-Subgraph Problem. Algorithmica 29(3), 410–421 (2001)

    Article  MATH  MathSciNet  Google Scholar 

  12. Fredman, M.L.: New bounds on the complexity of the shortest path problem. SIAM Journal on Computing 5, 49–60 (1976)

    Article  MathSciNet  Google Scholar 

  13. Fredman, M.L.: How good is the information theory bound in sorting? Theoret. Comput. Sci. 1, 355–361 (1976)

    Article  MATH  MathSciNet  Google Scholar 

  14. Håstad, J.: Clique is hard to approximate within n 1 − ε. Acta Math. 182(1), 105–142 (1998)

    Article  Google Scholar 

  15. Huang, X., Pan, V.Y.: Fast rectangular matrix multiplications and applications. Journal of Complexity 14, 257–299 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  16. Itai, A., Rodeh, M.: Finding a minimum circuit in a graph. SIAM Journal on Computing 7, 413–423 (1978)

    Article  MATH  MathSciNet  Google Scholar 

  17. Kloks, T., Kratsch, D., Müller, H.: Finding and counting small induced subgraphs efficiently. Inf. Process. Lett. 74(3-4), 115–121 (2000)

    Article  Google Scholar 

  18. Kowaluk, M., Lingas, A.: LCA Queries in Directed Acyclic Graphs. In: Caires, L., Italiano, G.F., Monteiro, L., Palamidessi, C., Yung, M. (eds.) ICALP 2005. LNCS, vol. 3580, pp. 241–248. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  19. Nešetřil, J., Poljak, S.: On the complexity of the subgraph problem. Comment. Math. Univ. Carolin. 26(2), 415–419 (1985)

    MATH  MathSciNet  Google Scholar 

  20. Plehn, J., Voigt, B.: Finding Minimally Weighted Subgraphs. In: Proceedings of the 16th International Workshop on Graph-Theoretic Concepts in Computer Science (WG), Springer, Heidelberg (1991)

    Google Scholar 

  21. Seidel, R.: On the All-Pairs-Shortest-Path Problem in Unweighted Undirected Graphs. J. Comput. Syst. Sci. 51(3), 400–403 (1995)

    Article  MathSciNet  Google Scholar 

  22. Vassilevska, V., Williams, R.: Finding a maximum weight triangle in n 3 − δ time, with applications. In: Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC) (to appear)

    Google Scholar 

  23. Yuster, R., Zwick, U.: Detecting short directed cycles using rectangular matrix multiplication and dynamic programming. In: Proc. of the 15th ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 247–253. ACM/SIAM (2004)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Vassilevska, V., Williams, R., Yuster, R. (2006). Finding the Smallest H-Subgraph in Real Weighted Graphs and Related Problems. In: Bugliesi, M., Preneel, B., Sassone, V., Wegener, I. (eds) Automata, Languages and Programming. ICALP 2006. Lecture Notes in Computer Science, vol 4051. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11786986_24

Download citation

  • DOI: https://doi.org/10.1007/11786986_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-35904-3

  • Online ISBN: 978-3-540-35905-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics