Range Minimum Query
Full Form of RMQ
What is RMQ?
Range Minimum Query, commonly abbreviated as RMQ, is a fundamental data structure and algorithmic problem widely studied in computer science. It involves finding the smallest element within a specific range or subarray of a static array without modifying the array. RMQ problems are typically solved using efficient techniques like the Sparse Table method, Segment Trees, or Binary Indexed Trees, each offering different time-space trade-offs. In India, RMQ is an essential topic in the data structures and algorithms curriculum of undergraduate and postgraduate computer science programmes at IITs, NITs, IIITs, and most engineering colleges. It is extensively practised by students preparing for coding interviews at companies like TCS, Infosys, Wipro, Google, Microsoft, and Amazon, as well as for competitive programming platforms such as CodeChef, HackerRank, and Codeforces. RMQ also serves as a building block for solving advanced problems like the Lowest Common Ancestor (LCA) in trees, making it a critical concept for academic and placement preparation across the Indian tech ecosystem.
RMQ का फुल फॉर्म
रेंज मिनिमम क्वेरी
Example
During her GATE preparation, Priya used a Sparse Table to efficiently solve every Range Minimum Query on the given array in O(1) time after preprocessing.