int[] arr = new int[10];
Would this count as a single primitive operation under the RAM model or would it be 10 operations as we are allocating 10 memory locations to this variable "arr"?
This also ties in to my other question: if there existed an array of size 1 and we were to increase the size by 1 and copy over the elements continuously, why is the Big-Theta of this computation θ(n^2)?