Browsing by Keywords optimal dynamic model