Edited, memorised or added to reading queue

on 26-Oct-2018 (Fri)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 3404902305036

Question
In python, if you have sequence (i.e. list), named s, how would you get the value in that sequence with the minimum length (e.g. for s = ["one", "athree", "zero"], "one" would be returned)?
Answer
min(s, key=len)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3412332514572

Question
In python, you have dictionary, d = {'one':1, 'two':2, 'three':3, 'four':4, 'five':5}, how do you return a reverse sorted list of the keys by numerical value (i.e. ['five', 'four', 'three', 'two', 'one']?
Answer
sorted(d.keys(), key=d.__getitem__, reverse=True)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3415825059084

Question
In Linux, you have compressed file kevin.txt.gz, how do you unzip it?
Answer
gzip -d kevin.txt.gz
^^ -d is short for --decompress, above replaces kevin.txt.gz with kevin.txt
^^ also correct is: gunzip kevin.txt.gz

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
4. Basic Commands
lt;filename> , which stands for GNU zip. Run gzip on a file in your home directory and then run ls to see what happened. Now, use more to view the compressed file. To uncompress the file use <span>gzip -d <filename> . Now, use more to view the file again. Many files on the system are stored in compressed format. For example, man pages are often stored compressed and are uncompressed automatically w







#aristoteles #wiki
Aristotle distinguishes sense perception from reason, which unifies and interprets the sense perceptions and is the source of all knowledge
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Aristotle | Internet Encyclopedia of Philosophy
cs, Aristotle identifies the highest good with intellectual virtue; that is, a moral person is one who cultivates certain virtues based on reasoning. And in his work on psychology and the soul, <span>Aristotle distinguishes sense perception from reason, which unifies and interprets the sense perceptions and is the source of all knowledge. Aristotle famously rejected Plato’s theory of forms, which states that properties such as beauty are abstract universal entities that exist independent of the objects themselves. Inste




Flashcard 3503649590540

Tags
#aristoteles #wiki
Question
Aristotle distinguishes [...] from [...] , which unifies and interprets the [...] and is the source of all knowledge
Answer
sense perception
reason
sense perceptions

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Aristotle distinguishes sense perception from reason, which unifies and interprets the sense perceptions and is the source of all knowledge

Original toplevel document

Aristotle | Internet Encyclopedia of Philosophy
cs, Aristotle identifies the highest good with intellectual virtue; that is, a moral person is one who cultivates certain virtues based on reasoning. And in his work on psychology and the soul, <span>Aristotle distinguishes sense perception from reason, which unifies and interprets the sense perceptions and is the source of all knowledge. Aristotle famously rejected Plato’s theory of forms, which states that properties such as beauty are abstract universal entities that exist independent of the objects themselves. Inste







#aristoteles #wiki
Soul is defined by Aristotle as the perfect expression or realization of a natural body
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Aristotle | Internet Encyclopedia of Philosophy
l aspects of the soul are described in the following two sections. For a fuller discussion of these topics, see the article Aristotle: Motion and its Place in Nature. 6. The Soul and Psychology <span>Soul is defined by Aristotle as the perfect expression or realization of a natural body. From this definition it follows that there is a close connection between psychological states, and physiological processes. Body and soul are unified in the same way that wax and an im




Flashcard 3503654833420

Tags
#aristoteles #wiki
Question
[...] is defined by Aristotle as the perfect expression or realization of a natural body
Answer
Soul

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Soul is defined by Aristotle as the perfect expression or realization of a natural body

Original toplevel document

Aristotle | Internet Encyclopedia of Philosophy
l aspects of the soul are described in the following two sections. For a fuller discussion of these topics, see the article Aristotle: Motion and its Place in Nature. 6. The Soul and Psychology <span>Soul is defined by Aristotle as the perfect expression or realization of a natural body. From this definition it follows that there is a close connection between psychological states, and physiological processes. Body and soul are unified in the same way that wax and an im







#aristoteles #wiki
Aristotle regards the soul or mind not as the product of the physiological conditions of the body, but as the truth of the body
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Aristotle | Internet Encyclopedia of Philosophy
stamped on it are unified. Metaphysicians before Aristotle discussed the soul abstractly without any regard to the bodily environment; this, Aristotle believes, was a mistake. At the same time, <span>Aristotle regards the soul or mind not as the product of the physiological conditions of the body, but as the truth of the body -- the substance in which only the bodily conditions gain their real meaning. The soul manifests its activity in certain "faculties" or "parts" which correspond with the stages of biolo




Flashcard 3503659289868

Tags
#aristoteles #wiki
Question
Aristotle regards the soul or mind not as the product of the physiological conditions of the body, but as the [...] of the body
Answer
truth

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Aristotle regards the soul or mind not as the product of the physiological conditions of the body, but as the truth of the body

Original toplevel document

Aristotle | Internet Encyclopedia of Philosophy
stamped on it are unified. Metaphysicians before Aristotle discussed the soul abstractly without any regard to the bodily environment; this, Aristotle believes, was a mistake. At the same time, <span>Aristotle regards the soul or mind not as the product of the physiological conditions of the body, but as the truth of the body -- the substance in which only the bodily conditions gain their real meaning. The soul manifests its activity in certain "faculties" or "parts" which correspond with the stages of biolo







#aristoteles #wiki
For Aristotle, there is an active reason which makes objects of thought.
A passive reason receives, combines and compares the objects of thought.
Active reason makes the world intelligible, and bestows on the materials of knowledge those ideas or categories which make them accessible to thought
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Aristotle | Internet Encyclopedia of Philosophy
work of reason in thinking beings suggests the question: How can immaterial thought come to receive material things? It is only possible in virtue of some community between thought and things. <span>Aristotle recognizes an active reason which makes objects of thought. This is distinguished from passive reason which receives, combines and compares the objects of thought. Active reason makes the world intelligible, and bestows on the materials of knowledge those ideas or categories which make them accessible to thought. This is just as the sun communicates to material objects that light, without which color would be invisible, and sight would have no object. Hence reason is the constant support of an




Flashcard 3503668202764

Tags
#aristoteles #wiki
Question
For Aristotle, there is an [...] which makes objects of thought.
A [...] receives, combines and compares the objects of thought.
[...] makes the world intelligible, and bestows on the materials of knowledge those ideas or categories which make them accessible to thought
Answer
active reason
passive reason
Active reason

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For Aristotle, there is an active reason which makes objects of thought. A passive reason receives, combines and compares the objects of thought. Active reason makes the world intelligible, and bestows on the materials of know

Original toplevel document

Aristotle | Internet Encyclopedia of Philosophy
work of reason in thinking beings suggests the question: How can immaterial thought come to receive material things? It is only possible in virtue of some community between thought and things. <span>Aristotle recognizes an active reason which makes objects of thought. This is distinguished from passive reason which receives, combines and compares the objects of thought. Active reason makes the world intelligible, and bestows on the materials of knowledge those ideas or categories which make them accessible to thought. This is just as the sun communicates to material objects that light, without which color would be invisible, and sight would have no object. Hence reason is the constant support of an







Flashcard 3503695990028

Question
In algorithms, stacks and queues are special types of [...] data structures.
Answer
list (more specifically: linked-list)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503699135756

Question
In algorithms, for stacks, the order of item addition/deletion is [...]
Answer
LIFO (last in, first out)
^^ just like a stack of plates

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503702281484

Question
In algorithms, you can create a stack data structure from scratch by using a [...]
Answer
linked list (of nodes)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503705427212

Question
In algorithms, a stack can be implemented as a linked list (and efficiently), as long as you 1) keep a pointer to the top node of the linked list and 2) [...]
Answer
each node points to the item below it in the stack

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503709359372

Question
In algorithms, a stack can be implemented as a linked list of nodes (and done so efficiently), as long as you 1) [...] and 2) each node points to the item below it in the stack
Answer
keep a pointer to the top node of the linked list

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503712505100

Question
In algorithms, if you get any variation of the balanced brackets (i.e. balanced round brackets, sqaured brackets, all brackets) problem, then the data structure to use is [...]
Answer
stack
^^ push to stack when you get a opening bracket (only opening brackets get pushed), and pop the opening brackets when you get a closing bracket (and check if it is right type of bracket, square vs round vs etc), and check for empty stack at end.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503716699404

Question
In algorithms, for the balanced brackets problem (either for one type of bracket or mixed types), you use a stack and [...long description of main part of algorithm here)...] , and check for empty stack at end.
Answer
push to stack when you get a opening bracket (only opening brackets get pushed), and pop the opening brackets when you get a closing bracket (and check if it is right type of bracket, square vs round vs etc).

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503719845132

Question
In algorithms, for the balanced brackets problem (either for one type of bracket or mixed types), you use a stack and push to stack when you get a opening bracket (only opening brackets get pushed), and pop the opening brackets when you get a closing bracket (and check if it is right type of bracket, square vs round vs etc)., and [...] at the end.
Answer
check for empty stack

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503722990860

Question
In algorithms, for queues, the order of item addition/deletion is [...]
Answer
FIFO (first in, first out)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503726923020

Question
In algorithms/python, you can use a list to implement a stack and it is highly effecient, as to add an item you do list. [...] , and to delete an item you do list. [...] , both operations are O(1).
^^ NOTE: the two occlusions above are each a different answer!
Answer
list.append(item) to push/add
list.pop() to pop/delete

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503730855180

Question
In algorithms/python, you can use a list to implement a queue (although effeciency is not optimal), and to add an item you do list. [...] , and to delete an item you do list. [...] , one is O(1) while the other is O(n).
^^ NOTE: the two occlusions above are each a different answer!
Answer
list.append(item) to enqueue/add
list.pop(0) to dequeue/delete

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503737146636

Question
In algorithms, a queue can be implemented as a single linked list of nodes (although not of optimal efficiently due to the slow delete), as long as you 1) [...] and 2) each node points to the item in front of it in the queue.
Answer
keep a pointer to the end of the queue

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3503741078796

Question
In algorithms, a queue can be implemented as a single linked list of nodes (although not of optimal efficiently due to the slow delete), as long as you 1) keep a pointer to the end of the queue and 2) [...]
Answer
each node points to the item in front of it in the queue.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs