CSC108H1 Study Guide - Final Guide: Memory Address, Object Copying, Logarithm

447 views7 pages
7 Apr 2016
School
Course
yifanyang and 39659 others unlocked
CSC108H1 Full Course Notes
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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents