Questions tagged [upperbound]

Upperbound refers to the maximum limit or the highest capacity a system can handle.

137 questions
-3
votes
1 answer

What is the complexity for std::upper_bound and std::lower_bound for Vector in C++?

What is the complexity of the std::lower_bound and std::upper_bound functions. I know in case of std::set it is log(n), but I have no idea for a std::vector. I was going through an implementation of the Longest Increasing Subsequence using…
-3
votes
1 answer

using STL Container upper_bound & lower_bound for map

I have the following for a set set myset; set::iterator it,itlow,itup; for (int i=1; i<10; i++) myset.insert(i*10); // 10 20 30 40 50 60 70 80 90 itup=myset.upper_bound (50); // cout << "upper_bound at position " <<…
mister
  • 3,303
  • 10
  • 31
  • 48
1 2 3
9
10