Browsing: Tennis algorithm