Skip to main content

A Linear Time Algorithm for Determining Almost Bipartite Graphs

  • Conference paper
  • First Online:
Book cover Theory and Applications of Models of Computation (TAMC 2015)

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

  • 885 Accesses

Abstract

A graph \(G\,=\,(V,E)\) is called almost bipartite if \(G\) is not bipartite, but there exists a vertex \(v\in V\) such that \(G-\{v\}\) is bipartite. We consider the problem of testing if \(G\) is almost bipartite or not.

This problem arises from the study on the \(k\)-arch layout problem. It is known that, given a graph \(G\) and an integer \(k\ge 2\), it is NP-complete to determine if \(G\) has a \(k\)-arch layout. On the other hand, \(G\) has a 1-arch layout if and only if \(G\) is almost bipartite [3]. It is straightforward to test if \(G\) is almost bipartite in \(O(n(n+m))\) time by using depth first search.

In this paper, we present a simple linear time algorithm for solving this problem. The efficiency of the algorithm is achieved by sophisticated applications of depth first search tree and the study of the structure of such graphs.

Research supported in part by NSF Grant CCR-1319732.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

References

  1. Boundy, J.A., Murty, U.S.R.: Graph Theory with Applications. Elsevier, North Holland (1976)

    Google Scholar 

  2. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3rd edn. The MIT Press, Cambridge (2009)

    MATH  Google Scholar 

  3. Dujmović, M., Wood, D.R.: On linear layout of graphs. Discrete Math. Theoret. Comput. Sci. 6, 339–358 (2004)

    MATH  Google Scholar 

  4. Iwata, Y., Oka, K., Yoshida, Y.: Linear-time FPT algorithms via network flow. In: Proceedings of the SODA, vol. 2014, pp. 1749–1761 (2014)

    Google Scholar 

  5. Proömel, H.J., Schickinger, T., Steger, A.: A note on triangle-free and bipartite graphs. Discrete Math. 257(2–3), 531–540 (2002)

    Article  MathSciNet  Google Scholar 

  6. Ramanujan, M.S., Saurabh, S.: Linear time parameterized algorithms via skew-symmetric multicuts. In: Proceedings of the SODA, vol. 2014, pp. 1739–1748 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xin He .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

He, D., He, X. (2015). A Linear Time Algorithm for Determining Almost Bipartite Graphs. In: Jain, R., Jain, S., Stephan, F. (eds) Theory and Applications of Models of Computation. TAMC 2015. Lecture Notes in Computer Science(), vol 9076. Springer, Cham. https://doi.org/10.1007/978-3-319-17142-5_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-17142-5_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-17141-8

  • Online ISBN: 978-3-319-17142-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics