Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8649725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:37:53+00:00 2026-06-12T13:37:53+00:00

In my algoritham analysis course teacher taught us that the time complexity of Breath

  • 0

In my algoritham analysis course teacher taught us that the time complexity of Breath First search is O(V+E) but now in Artificial intelligence course teacher is saying that the complexity of BFS is O(bd). When i asked him question he gave me a logical reason i.e “In theoretical computer science , O(V+E ) is appropriate because the graph is an explicit data structure that is input to the search algorithm. In AI, the graph is often represented implicitly by an initial state, action and transition model and frequently infinite. For this reason the complexity is expressed in term of O(bd)”. Now I have two questions

  1. How O(V+E) and O(bd) are equal the first one looks like a linear complexity and second one is exponential.
  2. When we talk about big O notation it means that upper bound whatsoever the input may be it should remains the same because its an upper bound. whether Big O only deals with some finite data input?

Wikipedia source

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:37:54+00:00Added an answer on June 12, 2026 at 1:37 pm

    In Artificial Intelligence – you usually handle with huge/infinite graphs, thus O(V+E) is not informative and not good enough for these graphs, so we try to get a better bound. This bound is O(B^d), where B is the branch factor and d is the depth of the solution. The rational behind this is if you “branch” to B directions at each depth, you end up exploring O(B^d) nodes.

    Morever – note that the classic BFS from your algorithms course is exploration algorithm – which needs to explore the entire graph (explore all vertices), while in AI we use it as pathfinding – you explore until we find a path from the source to the target. (no need, and sometimes it is impossible to explore the entire graph)

    Also note, that if you look on a tree (no node is discovered twice), with branch factor B and all leaves are of depth d – there are exactly B + B^2 + B^3 + ... + B^d < B^(d+1) nodes in the tree, so if you do need to

    How O(V+E) and O(b^d) are equal the first one looks like a linear
    complexity and second one is exponential.

    In the first, the graph is the input, so it is linear in the size of the input – the graph.

    The second is also linear in the size of the graph – and exponential in the depth of the solution – a different factor, still – no need to traverse a vertex more then once, so still linear in the graph’s size.

    So, in here – basically O(B^d) is a subset of O(V+E), and is more informative then it, if you can ‘suffer’ the fact that your complexity is a function of d, which is not part of the input.

    When we talk about big O notation it means that upper bound whatsoever
    the input may be it should remains the same because its an upper
    bound. whether Big O only deals with some finite data input?

    If the graph is infinite, big O is not informative, for each f(n), and for each constants c,N – c*f(n) < infinity, so it is useless when talking about infinite graphs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on the first programming homework on Coursera's Algorithms: Design and Analysis course
for an algorithm time complexity analysis i need to know what is the result
I know that Google’s search algorithm is mainly based on pagerank. However, it also
I have a simple little application that performs some analysis of all our corporate
I am implementing an image analysis algorithm using openCV and c++, but I found
I'm taking a data structures course, and we're using Data Structures and Algorithm Analysis
Thanks to this excellent analysis of the Plot algorithm by Yaroslav Bulatov, I now
According to my analysis, the running time of this algorithm should be N 2
I want to use Latent Semantic Analysis for a small app I'm building, but
In most of the calculation analysis of running times, we have assumed that all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.