or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Day 2 Q&A
General questions
Intro & fundamentals
Q: Could you give an example, like google searching engine, what type of algorithm G uses?
Q: Find largest POSITIVE integer?
__lt__
(less than) dunder method implemented.Comment: de Bruijn Graphs are used in genome assemblies
Comment: How Fast Do Algorithms Improve?: https://ieeexplore.ieee.org/document/9540991
Comment: Dijsktra's two-stack algorithm is a very simple and cool algorithm for evaluating mathematical expressions, just using two stacks in a clever way: https://switzerb.github.io/imposter/algorithms/2021/01/12/dijkstra-two-stack.html
Comment: One of the postdocs in my previous group wrote an algorithm that can solve the electrostatics of N particles linearly (though it is typically order N^2 because they 'speak to each other'). More info can be found here; https://www.sciencedirect.com/science/article/pii/S0021999120301534. We are now trying to implement it in my new group in Uppsala too, in case you're interested in knowing more let me know; thijs.smolders@kemi.uu.se.
Q: at around what N do we usually see stack overflow here? (recursive fibonacci sequence)
Q: If big-O notation is based on the algorithmic steps, written in psuedo-code - how can we know for use what constitutes a "single" step? I.e. looking up the index of a list was just described as a single step, does this hold true for the way the computer processes the request?
Data structures
common data structures:
Q: Will you consider 3-d array also a type of data structure?
Q: In one application, can we combine multiple data structures? E.g., can I use both tree and array at the same time?
Q:
Q: A tree is a graph, earlier you said (if I understood correctly) a graph was a data type, how is a tree a data structure then?
Comment: Amortized cost is the expected time complexity of an algorithm for a sequence of operations. The cannonical example is array resizing. /Matias
Q: Why is a matrix a data structure and not a data type? Especially if it is just represented as a array in the memory?
Q:(talking about binary trees)does this relate to depth-first vs breadth-first search?
Q: this is a super primitive question, so sorry about that, but what is the definition of "complexity" in the assignment? Also, what kind of information can I take as a given for a tree data structure?
Q: Maybe trivial, but when we talk about time complexity are we referring to runtime? or an abstract mesure?
Comment: Menti does not show indentations
Searching
Sorting
comment: https://www.youtube.com/playlist?list=PLOmdoKois7_FK-ySGwHBkltzB11snW7KQ How to visualise some different sorting as Hungarian folkdance. (Less risk of death from audio overload)(Last one on the list is this representation)
https://www.youtube.com/watch?v=ibtN8rY7V5k
comment: link to sorting canvas page https://uppsala.instructure.com/courses/69215/pages/sorting?module_item_id=611182
Q: Why is the condition i > 0 necessary in the insertion sort pseudocode? As it is, it seems to me that i will always be greater than 1, am I missing something? Did you mean i = i - 1?
Q: In the heap sort pseudocode iRightChild is not used. Is child+1 the equivalent?
Q:
Q:
Q:
BLAST
comment: In the Needleman-Wunsch pseudocode for calculating the alignment, the call to calculate F which means that it is easy to make the assumtion that the complexity of the sequence is more complex, but the question was regarding the comapring caclulating F and assembling the sequence once the F had been calculated.
Q: This question is not really related to the algorithms themselves, but about the resulting alignments from the Smith Waterman or Needleman-Wunsch algorithms, can we compare the scores between different alignments? What would be a "good" score? Is it decided by a rule of thumb?
-great, thanks!!
Q:
Q:
Q:
Parallellism
Questions above this line
Day 2 feedback