arjunsanjeev7's blog

By arjunsanjeev7, history, 3 years ago, In English,
 
 
 
 
  • Vote: I like it
  • +142
  • Vote: I do not like it

By arjunsanjeev7, history, 3 years ago, In English,

I have a step function 'V', over a domain 't' in [0,10^7]. It has shape as shown below.

V(t) = 0 for t in [0,a),
...... = 1 for t in (a,b), and
...... = 0 for t in (b,10^7]
for some 0 <= a < b <= 10^7.

What is the best way to find a and b (i.e., the starting and ending points of V(t)=1)? Can binary/ternary search be applied in this case?

Read more »

 
 
 
 
  • Vote: I like it
  • +2
  • Vote: I do not like it