CSC108H1 Study Guide - Final Guide: Memory Address, Object Copying, Logarithm
yifanyang and 39659 others unlocked
21
CSC108H1 Full Course Notes
Verified Note
21 documents
Document Summary
# this makes a clone, making a copy of the list (shallow copy) # it has a new memory address only on the outer surface, the inner has the same memory address (cid:1) (cid:1) (cid:1) (cid:1) # only making changes on the list, not the inner elements. Making a deep copy, where all the memory address of the outer and inner are different from original (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) # using keys and values to copy, there is also a method of dictionary (shallow copy) (cid:1) (cid:1) Exam 2010, q5 (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) (cid:1) As the input file gets larger, how does the time changes. Ex. double the size of the input, double the time. Ex. double the size of the input, only increases the time by one. # it doesn"t take extra time to execute the line.