tag:blogger.com,1999:blog-4115025577315673827.post1301678342265897572..comments2019-10-08T12:02:40.465+05:30Comments on CSE Blog - quant, math, computer science puzzles: Top 3 out of 25 horsesUnknownnoreply@blogger.comBlogger19125tag:blogger.com,1999:blog-4115025577315673827.post-19684862664962411492009-10-07T10:32:24.073+05:302009-10-07T10:32:24.073+05:30:)
Guys!! Sorry to be CS type here :)
@parakram
...:)<br /><br />Guys!! Sorry to be CS type here :)<br /><br />@parakram<br />CLR had an algorithm to find the median in O(n). Although the diagram formed is similar (set of fives) and elimination is similar (by transitive rule), the problems are not even related. Note that this idea would even work when the problem says 6 horses at a time. CLR case worked only for 5. :)<br /><br />Interesting you saw a relation between the solutions of the two problems... Thanx..<br />:)Pratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-16457161056921147382009-10-07T10:11:49.702+05:302009-10-07T10:11:49.702+05:30CLR kaa question lag raha hai... median in O(n) wa...CLR kaa question lag raha hai... median in O(n) wale chapter seParakram Majumdarhttps://www.blogger.com/profile/17472439581124519725noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-53004403859399025742009-10-06T12:49:56.600+05:302009-10-06T12:49:56.600+05:30:)
Pandeyji ka swagat hai!! :):)<br />Pandeyji ka swagat hai!! :)Pratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-26431782337822722462009-10-06T12:27:42.235+05:302009-10-06T12:27:42.235+05:30I didnt solve it
but once you know that the answer...I didnt solve it<br />but once you know that the answer is 7<br />u get how to do it :PGold and Ironhttps://www.blogger.com/profile/06432880847456391263noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-38127526247356182152009-10-05T19:39:23.303+05:302009-10-05T19:39:23.303+05:30@gyani.. good explanation...
thanx...
too late ...@gyani.. good explanation...<br /><br />thanx... <br />too late though :PPratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-20019148861461641582009-10-05T19:36:46.244+05:302009-10-05T19:36:46.244+05:30Form 5 groups to find 5 winning horses, run them f...Form 5 groups to find 5 winning horses, run them for 6th race<br />After 6th race, standings are:<br /><br />1-1, 1-2, 1-3, 1-4, 1-5<br />2a, 2b, 2c, 2d, 2e<br />3a, 3, 3, 3, 3<br />4, 4, 4, 4, 4<br />5, 5, 5, 5, 5<br /><br />Conduct 7th race among (1-2, 1-3, 2a, 2b, 3a)<br /><br />Short Logic- Sets 1-4 and 1-5 get discarded completely (after 6th race)and lower 4, 3, 2 positions of Set c,b and a (As they can in no way be among in top 3)Gyanuhttps://www.blogger.com/profile/02268406582664155871noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-34058522148463502272009-10-05T19:33:20.870+05:302009-10-05T19:33:20.870+05:30:):)Pratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-31236533657158032192009-10-05T19:31:49.360+05:302009-10-05T19:31:49.360+05:30mere badle sandy aur hussy ko tr8 dedo...me baad m...mere badle sandy aur hussy ko tr8 dedo...me baad me unse treat lelunga :)angushhttps://www.blogger.com/profile/09340910916231093253noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-86234490668619464192009-10-05T19:30:50.377+05:302009-10-05T19:30:50.377+05:30yo mishra...
koi na hussi... agli baar kar dena.....yo mishra...<br /><br />koi na hussi... agli baar kar dena.. :)<br /><br />BTW, mishra se pehle rushabh ne mujhe aa ke solution dikha diya tha :)<br /><br />anyways, treat to Mishra :PPratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-27694096762949842982009-10-05T19:24:08.432+05:302009-10-05T19:24:08.432+05:30good angush...
correct solution...
@hussain,sandy...good angush...<br />correct solution...<br /><br />@hussain,sandy.. missed by a few seconds.. good neways :)Pratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-22582567093117042482009-10-05T19:23:45.188+05:302009-10-05T19:23:45.188+05:30I m ankur mishra...H7 ... bhool gayaI m ankur mishra...H7 ... bhool gayaangushhttps://www.blogger.com/profile/09340910916231093253noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-9365559614678311602009-10-05T19:22:55.758+05:302009-10-05T19:22:55.758+05:30kya faart hai humne pehle kiya hai solve type karn...kya faart hai humne pehle kiya hai solve type karne mein late ho gaya<br />kya faart haihellraiserhttps://www.blogger.com/profile/13006742756924721810noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-44895308075439448772009-10-05T19:20:11.884+05:302009-10-05T19:20:11.884+05:30yeah the answer is 7 races
There are five group o...yeah the answer is 7 races<br /><br />There are five group of initial horses (A,B,C,D,E) name the horses as A1,A2,A3,A4,A5... according to their groups and their position in the initial 5 intra group races<br /><br />Now we are left with A1,A2,A3,B1,B2,B3,C1,C2,C3,...E1,E2,E3<br />i.e 15 horses.<br /><br />6th race is between A1,B1,C1,D1,E1<br />this gives us the 1st position horse<br /><br />Suppose the winner is B1, second comes D1 and third E1 implies A1,C1 are out, implies A and C groups are out. This also implies E2 & E3 are out, D3 is out since D1 may be second (from 6th race) so D3 is definitely out <br /><br />Now confusion is between B2,B3,D1,D2,E1....second and third overall are the first and second two of this final race which is the 7th race<br /><br />Answer solved by hussain and sandyhellraiserhttps://www.blogger.com/profile/13006742756924721810noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-17280612461386196532009-10-05T19:15:28.757+05:302009-10-05T19:15:28.757+05:30make 5 groups and then it and race each group once...make 5 groups and then it and race each group once<br />6th race-then race the top rankers to know position 1,2,3 <br />now position 1 is final position 1.<br />7th race- pick 2nd & 3rd horses from the group to which the position 1 belongs & pick 2nd from the group to which the 2nd horse of 6th race belongs & the horse that came 3rd in 6th race..from this race u get the final 2nd & 3rd positionangushhttps://www.blogger.com/profile/09340910916231093253noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-47170674033858900302009-10-05T18:44:07.037+05:302009-10-05T18:44:07.037+05:30@rushabh...
nope...
answer is not 8...
Its 7... ...@rushabh...<br /><br />nope...<br />answer is not 8...<br /><br />Its 7... good attempt though...Pratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-50627027945287099172009-10-05T18:42:40.094+05:302009-10-05T18:42:40.094+05:30is it 8?is it 8?scadzahttps://www.blogger.com/profile/04733361617492050871noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-17426673888759291372009-10-05T18:38:18.848+05:302009-10-05T18:38:18.848+05:308 races is that right ?
make 5 groups and then it...8 races is that right ?<br />make 5 groups and then it and race each group once<br />then race the top rankers to know position1 <br />then eleminate him from that group so we are left with 4 grps of 5 horses and 1 grp of 4 horses in sequenced order <br />repeat the procedure to know 1 2 and 3 so <br />for n th position no of races = 5 + nrushabhhttps://www.blogger.com/profile/11623246457371629102noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-72874410026443280262009-10-05T18:25:46.184+05:302009-10-05T18:25:46.184+05:30nope sandy... the answer is not 12nope sandy... the answer is not 12Pratik Poddarhttps://www.blogger.com/profile/11577606981573330954noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-53129214699900271462009-10-05T18:12:42.160+05:302009-10-05T18:12:42.160+05:30the answer is 12 races.... is it right??the answer is 12 races.... is it right??sandyhttps://www.blogger.com/profile/08904768705912419650noreply@blogger.com