Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
Hi Not sure if you still need this, but the reason why (d) (or (c) in the updated version) is the answer is because it follows the same order as the tree in Q4 (all nodes and subtrees are consistent as the one in Q4). Whereas for (b), the tree is di...
Array-based representation of binary trees
- Nodes are stored in an array A
- Node v is stored at A rank(v)
rank(root) 1
if node is the left child or parent(node), rank(node) 2 rank(parent(node))
if node is the right child of the par...
Hi, not a facilitator, but I think I can help.
You seem quite close with what you've got, but I think the problem is that you don't need to consider the Originator as something separate, the same constant rules will always apply.
As we know, the genera...
Hi, my code kept failing the get cousin dist() part.
it is passing the tests until (B, D).
From what i understood, to find the degree value of 2 individuals, I have to find the generation distance between their common ancestor and the originator.
Fo...
He said in the lecture today (which it sounds like you haven't attended watched) that he is making a practice test and will upload it as soon as possible.
sounds like its not finding your correct genealogy.py , as its not even stating which tests have pass failed so we can deduce that it didn't get to the testing stage of the program in the first place. either that or perhaps your class name inside th...
Hi, I have already completed this assessed lab however when I try to run the test case, I keep getting an error message "Process ended with exit code 1". Basically, it fails all tests. But when I hardcode the same inputs of the test case into my prog...
I would imagine we probably can since it was allowed in the first assessed lab, as long as it doesn't interfere with the marking process and we still meet the other listed requirements.
Someone asked this for the first assessed lab here
https secu...