Single-partition adaptive Q-learning: algorithm and applications