Patent attributes
Applications are presented for selecting response suggestions in a Graphical User Interface (GUI). Responses are identified for a message received in the GUI. Each response has a score and occupies a width of pixels in the GUI, which provides an available width of pixels for presenting the responses. Further, the method includes an operation for identifying sets of the responses, each set having one or more of the suggested responses. For each set, a utility of the set is calculated based on the score of the responses in the set, the width of pixels of the responses in the set, and the available width of pixels. Further, the set with the greatest utility is selected and then the responses of the set are presented in the GUI. Same principles may be applied to organizing screen layouts for applications that scroll vertically, such as user feeds or search results.