# Tag Info

Accepted

### iterate pagerank issue in cs50ai pagerank project

I think you are correctly calculating new pagerank values at iteration N+1 from values at iteration N. To confirm, here are the new page rank values you should get after the first iteration with ...
• 837

### CS50AI 2020 - Quiz 1 - Entailments

Let's take a look to the truth table and conclude why S2 ⊨ S5: Let p := Hermione is in library Let q := Harry is in library Let t := Ron is in library Let 0 := False Let 1 := True And let S1, S2, ...,...

### 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 ...
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(...
• 136
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 ...

### 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 ...
• 21
1 vote

### Minesweeper - :( add_knowledge cannot infer safe cells when given new information

Thanks to @kcw78 I managed to come up with a solution. I've redesigned the code completely. I made sure that every time the knowledge is updated it goes through the same process of marking mines and ...
1 vote

Oh never mind, I fixed it! So what I had to do is create a virtual environment that was outside of the project(tictactoe). I created the virtual environment on the folder CS50AI in my computer and the ...
• 21
1 vote

### CS50AI Crossword

The issue was within my backtrack function. It had to recheck whether or not the result presented by the recursive backtrack was consistent. if self.assignment_complete(assignment): return ...
1 vote

### Unable to install TensorFlow - CS50 AI, Traffic

The same problem happened to me since i am using Mac with M-series chip. What i did was i downloaded homebrew version of python 3.11 and then changed to that interpreter. After that i downloaded ...
• 11
1 vote

### CS50 AI lecture 0 search. I tried to implement Maze.py by myself

I assume you have found the problem by now. This is for anyone else that is interested in this code. The major problem is with the Queue remove method. (And, this is a stack/LIFO, not a queue.) I ...
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 ...
• 731
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 ...
• 28.4k
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. ...
• 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 ...
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