<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>wall05 by TRUONG Quoc Tuan</title>
      <link>https://padlet.com/qttruong/jhretzv0q5y45k2r</link>
      <description>Made with joy</description>
      <language>en-us</language>
      <pubDate>2021-08-18 11:09:36 UTC</pubDate>
      <lastBuildDate>2026-03-03 06:50:42 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Juan Sebastian</title>
         <author>jsebastian2020</author>
         <link>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877517552</link>
         <description><![CDATA[<div>a. get all&nbsp; possible combination of items<br>calculate the total weight for all these combination<br>filter combination that exceed the weight limit<br>calculate the total value for all the filtered combination<br>sort the items by value and get the highest valued combination<br><br>b. divide each of the value by the weight to get value per kg per item.<br>while the total weight is below the weight limit, insert the item starting from the highest value per kg until the total weight is equal to weight limit. If weight limit will b exceeded with inserting the current item, try to insert the next highest value per kg item.<br><br>c. yes. such as when the weight limit is 8kg. optimal is 5kg+2kg = $14, but greedy algorithm gives 2kg +3kg = $11</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 07:32:40 UTC</pubDate>
         <guid>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877517552</guid>
      </item>
      <item>
         <title>Zhi Ying</title>
         <author>zhiyingho20201</author>
         <link>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877639231</link>
         <description><![CDATA[<div>a) Try all combinations of items that are under or equal to 15kg and return the combination of items with the optimal sum of value.<br><br>b) Find the highest value to weight ratio and return the combination of items that is closest to 15kg</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 08:37:29 UTC</pubDate>
         <guid>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877639231</guid>
      </item>
      <item>
         <title>Jonathan</title>
         <author></author>
         <link>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877647089</link>
         <description><![CDATA[<div>a.&nbsp;<br>Initialise local max that stores combination of items with max value under weight limit<br>1. Calculate the total value and weight of all possible combinations of items, if weight &lt;= limit and value &gt; local max so far, replace local max<br>2. Return local max<br><br>b.&nbsp;<br>1. Calculate the value per kg of each item<br>2. While limit &gt; 0 and items remaining<br>limit -= item weight<br>remove item from item list</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 08:41:36 UTC</pubDate>
         <guid>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877647089</guid>
      </item>
      <item>
         <title>Zuyao</title>
         <author>zuyaoliu2020</author>
         <link>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877693397</link>
         <description><![CDATA[<div>a) Try every single combination and calculate the weight and value. Filter out those that are under 15kg and compare to pick the one with the highest value<br><br>b) Find the items with the greatest value as compared to weight and put them in till the threshold of 15kg is hit<br><br>c) 7kg<br><br>greedy algo --&gt; 2kg +3kg = $11<br>highest value --&gt; 2kg + 5kg = $14</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 09:06:55 UTC</pubDate>
         <guid>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877693397</guid>
      </item>
      <item>
         <title>Quinn</title>
         <author>quinncheong2019</author>
         <link>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877707986</link>
         <description><![CDATA[<div>a) Try out all possible combinations that the bag can hold and return the combination with the highest sum<br><br>b) rank-order the ratio of kg to value. Then proceed to take as much of each kg-value pair. If not,&nbsp; then proceed to take the next kg-value pair.<br><br>c) 7kg because the greedy will take E-D instead of B-E</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 09:15:01 UTC</pubDate>
         <guid>https://padlet.com/qttruong/jhretzv0q5y45k2r/wish/1877707986</guid>
      </item>
   </channel>
</rss>
