2010 AP Computer Science Discussion

<p>It’s been 48 hrs tho?</p>

<p>Alright then, someone start up a question haha. Also what about the multiple choice? When can we talk bout them?</p>

<p>ALSO
I skipped 5 on the MC and maybe got 5-6 wrong. I bombed part b GW and a little bit of a. Other than that, what r my chances of a 5?</p>

<p>I keep having nightmares about careless errors on free response</p>

<p>yeah, we can, considering the problems are already up, it shouldn’t make a difference</p>

<p>Well I’ll go first, since no one else is willing to do so:</p>

<p>I used getOccupiedAdjacentLocations(Location loc) several times in the gridworld, and a three-tiers of nested for-each loops, along with an array of Location objects…</p>

<p>I skipped 5 on the MC and maybe got 5-6 wrong. I bombed part b GW and a little bit of a. Other than that, what r my chances of a 5?</p>

<p>Pretty lowish, like maybe 20%, but it’s possible</p>

<p>how is it possible?</p>

<p>So how did you guys do #4 (b)?</p>

<p>At first, I wasn’t very sure of where to start but here’s a summary of the algorithm that I wrote:</p>

<p>1 int holds the row of the location (using loc.getRow() )
1 int holds the column of the location (using loc.getCol() )</p>

<p>one arraylist holds the occupied locations (using gr.getOccupiedLocations() which returns an arraylist)
one arraylist holds the occupied locations within 2 spaces</p>

<p>I then used a for loop to loop through the arraylist that holds the occupied locations</p>

<p>Inside this loop, I used an if-statement to measure check the difference between row number of each occupied location and the int that I used to store the row number of loc</p>

<p>If that if-statement worked, then I’d use a nested if-statement to check the difference between the column numbers</p>

<p>If the previous if-statement worked, then I’d add this location to an arraylist</p>

<p>After the loop, I simply returned the arraylist</p>

<p>Sounds right to me. But junhugie, how is it possible?</p>

<p>^^ I think I did the same thing- iterating through the ArrayList from gr.getOccupiedLocations() and then testing every location to see if it was within two rows & columns, and then adding that to the output ArrayList.</p>

<p>I just did 2 for loops, going from -2 to 2 on each</p>

<p>I then had an if statement at the beginning that checked if:</p>

<p>x and y were not both equal to 0
the row + x < num rows and >= 0
the col + 9 < num cols and >=0</p>

<p>then inside i checked if the location(x+row,y+col) isValid and had an actor
if so, i added it to an arraylist i made up at the top</p>

<p>^ You also need to check it the Locaiton isValid.</p>

<p>Anyone have any questions on the multiple choice?</p>

<p>Can’t talk about those</p>

<p>I used a wacky response to 4b. If you look at the 5x5 box with the X mark in the middle of it in the diagram, I found the occupied adjacent locations relative to the four points diagonal from the X and then eliminated the overlap. So for instance, if the X is at point (3,3), then I made an arraylist with the locations that are occupied and adjacent to (2,2), (2,4), (4,2), (4,4). then I checked to see if each of those four points were occupied. That gave me a list of all the occupied locations in the 5x5 box, and then I looped to eliminate duplicates and to eliminate any (3,3) location.</p>

<p>I realize that I missed the step where I had to check whether the points were valid coordinates to avoid IndexOutOfBounds, but otherwise, would my method be acceptable or would it receive a score of 0?</p>

<p>Also, when does CB post the scoring guidelines?</p>

<p>and meadow, i did lol. Forgot to put that</p>

<p>Haha okay. I remember I forgot that once while practicing so I just specified.</p>

<p>Junhugie, how is a 5 possible for me?</p>

<p>I’m not sure. Not an expert on AP grading lol: You could have bombed the gridworld less than you think. They actually grade pretty generously</p>

<p>Honestly, I think colleges should give credit less warily for 4’s. They should look at the test itself</p>

<p>but thats not possible, because the college board releases no information whatsoever.</p>

<p>I understand about not giving out questions, but one number for 80 dollars? seriously?</p>