Simple Programming Problem but How Many Ways to Do It?
6 views
Skip to first unread message
PHPBABY3
unread,
Aug 26, 2023, 1:09:37 PM8/26/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Program 1 returns a Boolean value call it A.
Program 2 returns a Boolean value call it B.
We want one program that returns A ^ B (the value of A and B).
We don’t want to call 1 and 2.
We want to take the code in these two programs and create a new program.
Assume we have the common commands and expression elements e.g. those of PHP.
How many different programs can we create?
PB3
Allodoxaphobia
unread,
Aug 27, 2023, 9:20:16 AM8/27/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
It's actually been a long time since I've seen a homework question on USENET.
J.O. Aho
unread,
Aug 27, 2023, 10:59:58 AM8/27/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Maybe one of those that promised to not use ChatGPT ;)
--
//Aho
PHPBABY3
unread,
Sep 2, 2023, 2:36:22 PM9/2/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I've never seen one. This is part of what I (arguably) believe is the most important problem of Computer Science - both in theory and practice.