Top "Rmq" questions

Given an array A[1,n] of n objects taken from a well-ordered set (such as numbers), a Range Minimum Query (or RMQ) from i to j asks for the position of a minimum element in the sub-array A[i,j].

How to use UIButton as Toggle Button?

I am trying to create a toggle button for each cell in my table. When pressed, it will change the …

ios iphone uibutton rubymotion rmq
Range Minimum Query <O(n), O(1)> approach (from tree to restricted RMQ)

So, I read this TopCoder tutorial on RMQ (Range Minimum Query), and I got a big question. On the section …

algorithm tree least-common-ancestor rmq cartesian-tree
Solving Range Minimum Queries using Binary Indexed Trees (Fenwick Trees)

Formally, the Range Minimum Query Problem is: Given an array A[0, N-1] , Find the position of the element with the …

algorithm data-structures tree fenwick-tree rmq
What data structure using O(n) storage with O(log n) query time should I use for Range Minimum Queries?

I'm stumped by the following homework question for an algorithms class: Suppose that we are given a sequence of n …

algorithm data-structures binary-tree big-o rmq