Hot answers tagged

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(...
user avatar
  • 136
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 701
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 ...
user avatar
  • 11
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 ...
user avatar
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. ...
user avatar
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. ...
user avatar
  • 11
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 ...
user avatar
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(...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible