2
votes
Accepted
CS50 AI - Knights - Knowledge 3
How did you reason about this statement:
# Information about what the characters actually said
# A says either "I am a knight." or "I am a knave.", but you don't know which.
Or(...
2
votes
Accepted
Problem with path reversing in CS50 AI -> Degrees
So, here is your debugged code. Basically there were two main reasons why it was not working....
you were adding the node when it was not a target among the neighbors without checking whether that ...
2
votes
Accepted
CS50AI 2020 - Quiz 1 - Entailments
So if it is written A entails B, it means that for all possible worlds, is there any world where A is true and B is true.
So firstly, sentence 3 is never gonna be true.
let's see Sentence 1 entails ...
2
votes
Using submit50 on VSCode
I noticed this a duplicate question that you have already posted here but I can't flag it as a duplicate, so I'll repost my answer here in case anyone chances upon this one instead:
This is due to ...
1
vote
Accepted
Iterative PageRank Questions
As stated in the specifications of the problem :
The iterate_pagerank function should accept a corpus of web pages and a damping
factor, calculate PageRanks based on the iteration formula described ...
1
vote
Iterative Pagerank Formula
This notation is explained in the lecture at about the 45 minute mark. It's saying that for each page that links TO page 'p', you need to find the page rank for that page, then divide by the number ...
1
vote
Accepted
CS50 AI Project 0a CS50 IDE bug
You'll need to install python locally and work there. You'll be able to upload the project files to the IDE for submit50. Consider signing up for Ed Discussion, there is a more robust CS50 AI ...
1
vote
Lecture question from lecture 1 (cs50AI)
So,
Here is the deduction:
If it didn’t rain, Harry visited Hagrid today.
Harry visited Hagrid or Dumbledor today, but not both.
Harry visited Dumbledor today.
Harry did not visit Hagrid today.
...
1
vote
Lecture question from lecture 1 (cs50AI)
If it didn’t rain, Harry visited Hagrid today.
Harry visited Hagrid or Dumbledor today, but not both.
Harry visited Dumbledor today.
Harry did not visit Hagrid today.
Deduction: It rained today.
...
1
vote
CS50AI Tic tac toe game with minimax algorithm: I keep receive Invalid move
For the result function, you don't need to iterate through all the actions available for the given board.
Instead you just need to return newboard which will result it the action parameter given in ...
1
vote
CS50 AI Problem 1A Invalid Syntax
You have to provide commas to keep separate your logical expressions like
And(Or(AKnight, AKnave),
Biconditional(AKnight, Not(AKnave)),
Biconditional(AKnave, Not(AKnight)),
Implication(...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cs50ai × 25knights × 4
python × 2
search × 2
submit50 × 2
project × 2
traffic × 2
pset3 × 1
cs50-ide × 1
help × 1
cs50submit × 1
project0 × 1
2020 × 1
syntaxerror × 1
infiniteloop × 1
question × 1
visual-studio × 1
lecture1 × 1
optimization × 1
tic-tac-toe × 1
project0b × 1
degrees × 1
project0a × 1
pagerank × 1
tokenize × 1