- 博客(7)
- 收藏
- 关注
原创 [Computer Architecture] chapter 1
Parallelismparallelismfocuswho’s responsibilityinstruction-level parallelism (ILP)uniprocessorcompiler, hardwarethread-level parallelism (TLP)multiple processorsprogrammerdata-level parallelism (DLP)multiple processorsprogrammer
2020-08-22 11:08:47
122
原创 [Princeton Algorithms I] Union-Find
Union-Findhttps://algs4.cs.princeton.edu/15uf/Dynamic Connectivity Problema dynamic connectivity structure is a data structure that dynamically maintains information about the connected components of a graph.Union-Find APIImplementationsQuick-Find
2020-07-30 11:44:42
173
原创 [CS61B-Sp18] Packages and Access Control
Packages and Access ControlPackagesCreatingPut the package name at the top of every file in this packageStore the file in a folder that has the appropriate folder nameIn IntelliJ:File → New PackageChoose package name (i.e. “ug.joshh.animal”)
2020-07-13 20:48:06
89
原创 [CS61B-Sp18] Exceptions, Iterations, Object Methods
Exceptions, Iteratations, Object MethodsExceptionsSyntax: throw new ExceptionObject(parameter1, ...)example: throw new IllegalArgumentException("can't add null");IterationsEnhanced for loopSet<String> s = new HashSet<>();...for (St
2020-07-11 05:59:40
91
原创 [CS61B-Sp18] Java Syntax
Java SyntaxAutoboxingPrimitives and Wrapper classesJava can implicitly convert between primitive and wrapper classes.PrimitivesWrapper classesbyteByteshortShortintIntegerlongLongfloatFloatedoubleDoublebooleanBoolean
2020-07-10 23:22:31
100
原创 [CS61B-Sp18] OOP
InheritanceHypernym and HyponymInterface: the HypernymAll methods must be public, therefore public is redundant.All variables are public static final (value can never change)Cannot be instantiatedCan implement more than one interface per classInte
2020-07-09 00:12:15
329
原创 [CS61B-Sp18] lists
ListsSLListIntroAdd a middle man that supervise the listSentinel pointer always points to the dummy start node.Caching the size to avoid traversl when adding/removing.Caching the last pointer to avoid traversal when adding the last.Basic: SLList w
2020-07-08 22:05:16
101
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人