JLOGIC Posted September 8, 2010 Report Share Posted September 8, 2010 math nerds itt ;) Quote Link to comment Share on other sites More sharing options...
gwnn Posted September 8, 2010 Report Share Posted September 8, 2010 Are there other types of nerds? Or more strictly, are there nerds who are arbitrarily bad in mathematics? Quote Link to comment Share on other sites More sharing options...
helene_t Posted September 8, 2010 Report Share Posted September 8, 2010 I am starting to get a feeling I've been had, for answering this post... Can some moderator please move Peachy's post to the official water cooler hijacked thread? Quote Link to comment Share on other sites More sharing options...
TimG Posted September 8, 2010 Report Share Posted September 8, 2010 How about: AK6AJ3A2QJ2 That would wastefully use an extra character whenever you have a 10-card suit. Not if you use T for 10. Quote Link to comment Share on other sites More sharing options...
helene_t Posted September 8, 2010 Report Share Posted September 8, 2010 So AT is just that while A-T is AT98765432? Quote Link to comment Share on other sites More sharing options...
kfay Posted September 8, 2010 Report Share Posted September 8, 2010 How about: AK6AJ3A2QJ2 That would wastefully use an extra character whenever you have a 10-card suit. Not if you use T for 10. t's are basically sideways x's, imo. no place for hem in his hread. Quote Link to comment Share on other sites More sharing options...
TimG Posted September 8, 2010 Report Share Posted September 8, 2010 So AT is just that while A-T is AT98765432? In Han's proposal AT is written AT0, in mine it would be AT2. Quote Link to comment Share on other sites More sharing options...
mgoetze Posted September 8, 2010 Report Share Posted September 8, 2010 At least we should stop using the enter button so much (it is 2 bytes). Only on Windows. Maybe BBO would consider switching to a Unix server, so that if anyone does wastefully use a newline the damage will be reduced by 50%? The forums seem to be running on a linux server already. Using a - to separate the length/no. of spots is obviously wasteful. For compactness, I propose using it for sequences instead, i.e. AKQJ2 can obviously be written more compactly as A-J2. Even better would be to assign new letters to certain honor combinations, e.g. replace any KQ with M (this combination is called "Marriage" in German) and you can write it just as well as AMJ2. Or even H2 (H for honors). I'm sure you can think of more, e.g. F ("Finesse") for AQ, etc. Quote Link to comment Share on other sites More sharing options...
ahydra Posted September 8, 2010 Report Share Posted September 8, 2010 You only need 96 bits to write an entire deal, 2 extra for vulnerability and 2 extra for dealer. That's 12.5 bytes, so you still have 4 bits left (since we only use bytes anyway) to select which hands you want of that deal. Why waste so many bytes on writing a single hand? 13 bytes is enough to show full deals, 1 hand, any 2 hands, or even any 3 hands. How does one write a deal in 96 bits? Surely you need 102 - I assume you're doing the sensible thing which is to specify, using 2 bits per card (giving the cards a predefined order), the hand in which the card appears. After the 51st card we know where the 52nd one belongs by process of elimination. But if we come down to 50 cards and two hands with 12 we can't place the remaining two - or in your case we have 48 cards but (unless the current distribution is 13 13 13 9) no idea which hand the remaining cards belong in. We may rarely get some minor compression opportunities when one hand holds all the small clubs or whatever the last cards are :) As for the OP - it might be better to specify the number of cards as people are used to reading/saying holdings like "ace-king fifth", etc. So AK5 should mean AKxxx, and zeroes can (of course) be omitted. But you might confuse AK5 with the actual holding of the ace, king and five, I suppose - so what about AK-5. And then you notice that it's only worth doing that if you hold enough spotcards anyway, so you wouldn't write AK-3, but AKx. AK-4 or AKxx both use the same number of characters so it's a matter of choice, which is always nice to have (except when writing parsers for files/strings :)) ahydra Quote Link to comment Share on other sites More sharing options...
inquiry Posted September 8, 2010 Report Share Posted September 8, 2010 Chthonic just emailed me, he says you guys are all wrong. He would show this spade suit (AK952) like this... 1100010001001 A void would be 0000000000000 He says if humans have trouble reading 1100010001001 it is 1001db49269 in hexadecimal. He finally make a huge concession to me because of my stupidity, and told me that this could be written as 6281. He said he stores all the information about hands in binary form and can't figure out why we donot. !3 bit math is childs play, he says. But he says we humans can dummy it down to 4 bit math0000 is no honor this is the SAME AS 0 in decimal he said.0001 is the JACK, he said this is 1 in decimal, and as a memory tool (he thinks we need many), jacks are usually worth 1 point0010 is the Queen, he said this is 2 in decimal, and asked me if I knew how many points the queen usually counts, I could swear I heard him laughing0011 is three, and shows the Q and the Jack. This happens to be three in decimal.2+1, 2+! he kept saying as if that made any sense to me0100 is the King. This is Four in declmal, and in Zar points, the king is worth "four points" he explained. Does that help you he asked?0101 is King plus Jack, and cool thing, this is 5, just as in Zar points!0110 is King plus queen, which works out to 6 to be six in decimal, and six in ZAR points. 0111 is all the royal family: KQJ, and is 7 in decimal, as it is in ZAR points1000 is the ACE, this is 8 in decimal and is where Zar goes wrong.1001 is AJ, and 9 in decimal1010 is AQ, and is 10 in decimal1011 is AQJ and is 11 in decimal1100 is AK and is 12 in decimal1101 is AKJ and is 13 in decimal1110 is AKQ and is 14 in decimal1111 is AKQJ and is 15 in decimalIf we are willing to accept a second number for total number of non-honors, you get something like: 15-3 to show AKQJxxx But he says, if you stick to binary, then wne a card is played, the math is easy, imagine you held 1111 and then you played teh King, what would you have left? Why 1011 of course. Why we humans insist on decimal math is one of many things he can't understand. Quote Link to comment Share on other sites More sharing options...
blahonga Posted September 8, 2010 Report Share Posted September 8, 2010 How does one write a deal in 96 bits? There are only 53,644,737,765,488,792,839,237,440,000 different bridge deals. Log2 of 53,644,737,765,488,792,839,237,440,000 is about 95.5. Just assign a number to each bridge deal and take the binary expansion of this number. Quote Link to comment Share on other sites More sharing options...
babalu1997 Posted September 8, 2010 Report Share Posted September 8, 2010 Are there other types of nerds? Or more strictly, are there nerds who are arbitrarily bad in mathematics? david byrne? Quote Link to comment Share on other sites More sharing options...
Cascade Posted September 9, 2010 Report Share Posted September 9, 2010 We'll write A23 for A8652. There is an obvious ambiguity here between Axxx2 and Axxxxxxxxxxxxxxxxxxxxxxx Do you propose a method to resolve this? Otherwise I like the idea. Quote Link to comment Share on other sites More sharing options...
655321 Posted September 9, 2010 Report Share Posted September 9, 2010 Better would be to have one hex number for AKQJ - i.e. each suit either has the Ace or not, has the King or not, etc. So AKQJ would be represented as 'f', and none of the AKQJ would be represented as 0. So, AKQTxxx Kxx - Qxx could be represented as eT3420022 or as e4420022 depending on whether or not you were interested in tens. Quote Link to comment Share on other sites More sharing options...
dburn Posted September 9, 2010 Report Share Posted September 9, 2010 One could, of course, commandeer the letters from "g" to (or, as they say in Barbarian, through) "v" as extensions to the hexadecimal notation and use base 32 instead. That way, s4 is AKQxxxx and t3 is AKQ10xxx. A fifth theory is held by idiots, but it is doubtful if they know any more about the matter than the others. (Ambrose Bierce, The Devil's Dictionary) Quote Link to comment Share on other sites More sharing options...
ahydra Posted September 9, 2010 Report Share Posted September 9, 2010 How does one write a deal in 96 bits? There are only 53,644,737,765,488,792,839,237,440,000 different bridge deals. Log2 of 53,644,737,765,488,792,839,237,440,000 is about 95.5. Just assign a number to each bridge deal and take the binary expansion of this number. Ouch :/ Would love to see pseudocode for encoding/decoding those! ahydra Quote Link to comment Share on other sites More sharing options...
Free Posted September 9, 2010 Report Share Posted September 9, 2010 How does one write a deal in 96 bits? There are only 53,644,737,765,488,792,839,237,440,000 different bridge deals. Log2 of 53,644,737,765,488,792,839,237,440,000 is about 95.5. Just assign a number to each bridge deal and take the binary expansion of this number. Ouch :/ Would love to see pseudocode for encoding/decoding those! ahydra Read this: http://bridge.thomasoandrews.com/impossible/ This is how you can easily create a deal generator. You just need a 96-bits randomizer (PRNG or TRNG) and you can generate every single deal... :) Quote Link to comment Share on other sites More sharing options...
ahydra Posted September 9, 2010 Report Share Posted September 9, 2010 That's pretty awesome, I have to admit. :) Although for 1 extra byte we can just specify the hand each card appears in and save a bunch of maths, it somewhat takes the fun out of it. ahydra Quote Link to comment Share on other sites More sharing options...
1eyedjack Posted September 11, 2010 Report Share Posted September 11, 2010 It is an entertaining thread, but it seems to me that the purpose of the proposal is to save time for, and add convenience to, the person writing the hand at the expense of that of the person reading and decyphering it, where the more admirable objective should be to minimise the mental effort decyphering the hand even if that should be at the expense of a small extra time and effort in writing it. Take this example:http://forums.bridgebase.com/index.php?sho...ndpost&p=493739It takes extra effort to determine whetherAQJ94 is(1) a 5 card suit containing the Ace, Queen, Jack, nine and four, with the four for whatever reason being considered a significant card,contrasted with (2) AQJ9xxxx Now I appreciate that option (1) above (the 5 card suit, all cards being significant) would be written as AQJ940, which on this occasion (albeit admittedly perhaps not generally) takes an extra character to describe the suit. And maybe if the notation became standard and "second nature" then the decyphering overhead would diminish. For as long as more than one notation is popular, it needs to be apparent which notation is being used on a given occasion. Explicitly expressing the notation would be tedious. Provided that you are giving the entire hand, it may be obvious from the context, with the hand described being consistent only with one notation in order to have 13 cards (although this does not allow for errors in presenting hands with other than 13 cards - a practice which is rife). But expressing a single suit as AQJ94 is ambiguous as to the notation adopted. I suppose that AQJ9(4) has some merit as it minimises mental decoding effort and saving you the trouble of having to count the "x"s, which is of value both to the poster and to the reader. It may also reduce the instances of typos where extra "x"s are typed (or missed) resulting in a hand posted with other than 13 cards. Quote Link to comment Share on other sites More sharing options...
hanp Posted September 11, 2010 Author Report Share Posted September 11, 2010 Well, my keyboard is functioning properly again so I'm going to abandon the x-factor notation. Thanks all for the suggestions. TimG, I regret you didn't appreciate the beauty of AK100. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.