-
Leetcode Framework with Java
Reference: The post is used to record the leetcode framework by using Java. At the beginning, I don’t know how to program with Java. In order to improve the efficiency, we should formulate the procedure when we write the code. Notice that there are two parts: test examples and algorithm realization. You could put these two parts in... Read More
-
Java basics
Java 基础之 main 方法解读: 一、深入理解 main 方法:(由java虚拟机调用) 解释 main 方法的形式:public static void main (String [] args){} -1.Java虚拟机需要调用类的 main()方法,所以该方法的访问权限必须是 public; -2.Java虚拟机在执行 main() 方法的时候不必创建对象,所以该方法必须是 static; -3.该方法接收 String 类型的数组参数,该数组中保存执行 Java 命令是传递给所运行的类的参数; -4.Java执行程序时,传入参数。 二、特别提示: -1.在 main() 方法中,我们可以直接调用 main() 方法所在类的静态方法或静态属性。 -2.但是,... Read More
-
Minimax regret
Maximin, maximax and minimax regret are three approaches to decision making under uncertainty. The maximax rule involves selecting the alternative that maximises the maximum payoff available. The manager who employs the maximax criterion is a risk-taker. The maximin rule involves selecting the alternative that maximises the minimum pay... Read More
-
Useful Phrases
Just give me a moment/minute/sec. Could you wait a moment please? Could/can you hold please? Have/take a seat, please. On a side note 另一方面 A blessing in disguise 因祸得福 Not a cloud in the sky 万里无云;万事大吉 Rise and shine! 快起床! A sight for sore eyes 乐于看到的人,喜闻乐见的事 In... Read More
-
Summary about coding
Realize some functions seperately. But when you merge these functions into a main function, remember to use the same name(data structure) representing the same variable. Would better design the flow of the functions at the beginning. Add to the main function after testing each sub-function. Read More
-
Summary about Gurobi
addMVar vs addVar For MVar, z = m.addMVar(shape = W, vtype=GRB.CONTINUOUS) just use z[0] to indicate the first variable. For Var, x ={} for i in range(1,3): x[i] = model.addVar(lb = 0, ub = GRB.INFINITY, vtype = GRB.CONTINUOUS, name = ‘x_’ + str(i)) Use x[1] to indicate the first variable. addConstrs() vs addConstr() model.addConstr... Read More
-
How to prepare an excellent thesis defense
Original link. https://paperpile.com/g/thesis-defense/ What is a thesis defense? If you’re about to complete, or have ever completed a graduate degree, you have most likely come across the term “thesis defense”. In many countries, to finish a graduate degree, you have to write a thesis. In general, a thesis is a large paper based on a topic re... Read More
-
What is a thesis defense?
Original link: https://www.cc.gatech.edu/faculty/ashwin/wisdom/what-is-a-thesis-defense.html What is a thesis defense? A thesis defense has two parts: a thesis and a defense. The second mistake many students make is not knowing what their thesis is. The third mistake is not knowing how to defend it. (The first mistake is describe later.) What ... Read More
-
Some phases
What a pity In a sarcastic sense. Day to day, I’ll be like – Daily. That sucks. That’s too bad. That’s a shame. Just so-so. It’s alright. It’s ok. It’s not bad. Seldom Rarely Hardly ever I don’t really do that… That’s not for me… Some adverbs. Honestly, Basically, Actually, Definitely, Inherently. Probably, ... Read More
-
Mistakes in LaTex
About the equation. When you use a wrong combination, the program will have errors. For example, if you use begin aligned seperately, you will encounter some problems. begin align end align begin equation begin aligned end aligned end equation \[ begin split end split \] About the text You could use \mbox{content} or \text... Read More