Calcudoku puzzle forum https://www.calcudoku.org/forum/ |
|
Question https://www.calcudoku.org/forum/viewtopic.php?f=2&t=843 |
Page 1 of 1 |
Author: | marblevolcano [ Wed Nov 16, 2016 9:57 pm ] |
Post subject: | Question |
Most people know that on this site there are some puzzles that contain the bitwise OR operator. Well, would it be possible to also include the bitwise AND operator? (Which outputs a 1 if both inputs are 1, but a 0 otherwise) For example, 8 AND 5 would be 0 because 1000 0101 0000 but 7 AND 5 would be 5 because 111 101 101 (hopefully this makes sense ) |
Author: | beaker [ Thu Nov 17, 2016 12:28 am ] |
Post subject: | Re: Question |
This is beyond me.....I looked at your post and could not figure out about what you were talking |
Author: | jpoos [ Thu Nov 17, 2016 12:38 am ] |
Post subject: | Re: Question |
I understand what you mean. Beaker, are you familiar with the bitwise OR operator? If not, you might want to read up a bit on Wikipedia: https://en.wikipedia.org/wiki/Bitwise_operation Sounds like an interesting idea: I think such an operator will give enough information to be useful, yet is complex enough to make things difficult. |
Author: | beaker [ Thu Nov 17, 2016 1:05 am ] |
Post subject: | Re: Question |
You can not teach an old dog new tricks and this is ONE OLD DOG!! .....when stuff like this comes up I feel like I am 72 going on 80!!! |
Author: | clm [ Thu Nov 17, 2016 8:28 am ] |
Post subject: | Re: Question |
marblevolcano wrote: Most people know that on this site there are some puzzles that contain the bitwise OR operator. Well, would it be possible to also include the bitwise AND operator? (Which outputs a 1 if both inputs are 1, but a 0 otherwise) For example, 8 AND 5 would be 0 because 1000 0101 0000 but 7 AND 5 would be 5 because 111 101 101 (hopefully this makes sense ) It's a logical operator not more difficult than Bitwise OR. Perhaps you may start with this puzzle (I had not big successs when I proposed that in 2011): viewtopic.php?f=16&t=124&start=10 |
Author: | pnm [ Thu Nov 17, 2016 8:33 am ] |
Post subject: | Re: Question |
marblevolcano wrote: Most people know that on this site there are some puzzles that contain the bitwise OR operator. Well, would it be possible to also include the bitwise AND operator? (Which outputs a 1 if both inputs are 1, but a 0 otherwise) Because from a "coding perspective" such an operator is almost the same, it wouldn't be difficult to create such puzzles. (or puzzles with other logical operators, like XOR, NOR, ...) Patrick |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |