{"id":4135,"date":"2020-10-30T07:47:21","date_gmt":"2020-10-30T15:47:21","guid":{"rendered":"https:\/\/bendwavy.org\/wp\/?p=4135"},"modified":"2020-10-30T11:10:03","modified_gmt":"2020-10-30T19:10:03","slug":"bubbling-shelves","status":"publish","type":"post","link":"https:\/\/bendwavy.org\/wp\/?p=4135","title":{"rendered":"bubbling shelves"},"content":{"rendered":"<p>I have more books than shelf space.  I assume that some of my readers can say the same.<\/p>\n<p>In my previous apartment, where space was even scarcer, I had one shelf beside my desk for the reference books that I use most often.  After consulting such a book, I put it at the end of that shelf nearest my hand (I&#8217;ll call that end the head).  How might I extend that principle to many shelves, without shifting all the books every time?<\/p>\n<p>Initially all the books are in boxes (with a catalog telling me which box each is in).  When I take a book from a box, it goes to the head of the first non-full shelf.  If all shelves are full, it goes on the last shelf, and the last book on that shelf goes to a box.<\/p>\n<p>When I take a book from a shelf, I return it to the head of the <em>previous<\/em> shelf (if any) and, if necessary, move a book from the tail of that shelf to the head of the next shelf.<\/p>\n<p>Can you improve this scheme?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have more books than shelf space. I assume that some of my readers can say the same. In my previous apartment, where space was even scarcer, I had one shelf beside my desk for the reference books that I &hellip; <a href=\"https:\/\/bendwavy.org\/wp\/?p=4135\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4135","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4135"}],"version-history":[{"count":4,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4135\/revisions"}],"predecessor-version":[{"id":4139,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4135\/revisions\/4139"}],"wp:attachment":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}