View unanswered posts | View active topics It is currently Fri Mar 29, 2024 12:37 am



← Back to the Calcudoku puzzle page




Reply to topic  [ 6 posts ] 
 Question 
Author Message

Posted on: Wed Nov 16, 2016 9:57 pm




Posts: 279
Joined: Sun May 22, 2016 2:17 pm
 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 [unsure] )


Profile

Posted on: Thu Nov 17, 2016 12:28 am




Posts: 931
Location: Ladysmith, BC, Canada
Joined: Fri May 13, 2011 1:37 am
Post Re: Question
This is beyond me.....I looked at your post and could not figure out about what you were talking [confused] [thumbdn]


Profile

Posted on: Thu Nov 17, 2016 12:38 am




Posts: 158
Joined: Sun Nov 03, 2013 10:28 pm
Post 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.


Profile

Posted on: Thu Nov 17, 2016 1:05 am




Posts: 931
Location: Ladysmith, BC, Canada
Joined: Fri May 13, 2011 1:37 am
Post Re: Question
You can not teach an old dog new tricks and this is ONE OLD DOG!! [smile].....when stuff like this comes up I feel like I am 72 going on 80!!!


Profile

Posted on: Thu Nov 17, 2016 8:28 am




Posts: 855
Joined: Fri May 13, 2011 6:51 pm
Post 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 [unsure] )


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


Profile
User avatar

Posted on: Thu Nov 17, 2016 8:33 am




Posts: 3296
Joined: Thu May 12, 2011 11:58 pm
Post 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


Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
All forum contents © Patrick Min, and by the post authors.

Forum software phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.