The weary traveler should never go without:
water, a good book, a plan
I am in the finishing motions of my Bsc. of science in Bioinformatics, using this blog to share my own experiences with life science and the courses I take.
I post random texts about travel and entertainment
Avengers 2 - Age of Ultron
When I checked my newsfeed this morning I basically lost my shit waking up - the official trailer for next years sequel to Marvel's The Avengers has been leaked!!!
In this quick post I try to explain the basics of the Cock-Younger-Kasami (CYK) Algorithm to you. This shouldn't take more than 15min for you to understand, since I am terrible at logic and math related studies - if I could do it so can you :D
The CYK is a theoretical construct that can be used to find context free languages by feeding grammar and its production rules into a table and see wether a word from the language you wish to identify, matches up with these rules. To make this process run smooth, the production rules must be formatted in such way that it matches Chomsky Normal Form (CNF) standards;
on the left hand side of a production rule stands a non-terminal symbol (a variable) on the right hand side of a production rule there can be maximal 2 non-terminals or 1 terminal symbol (a symbol that represents a constant value) but never non-terminals and terminals mixed For my course I worked through an example step by step, we started out with 3 production rules:
The citric acid cycle is one of the central logistical hub in our metabolism. It provides oxidative breakdown for organic substances, energy by releasing CO2 and H2O from Acetyl-CoA and so on.
There are 10 basic steps to the cycle and its goal is to catalyze the condensation of Oxalacetate to Citrate. I will list the intermediates of this reaction and their respective enzymes, as well as their components: Citrate + Aconitase -> cis-Aconitate (H20) cis-Aconitate + Aconitase -> Isocitrate(H20) Isocitrate + Isocitrate-dehydrogenase -> Oxalsuccinate (NAD+, NADH) Oxalsuccinate + Isocitrate-dehydrogenase -> Alpha-ketoglutaric-acid (CO2) Alpha-ketoglutaric-acid + alpha-ketoglutarate-dehydrogenase-complex -> Succinyl-CoA (CoA, NAD+, CO2, NADH/H+) Succinyl-CoA + Succinyl-CoA-Synthase -> Succinate (GDP, ADP, GTP, ATP) Succinate + Succinate-dehydrogenase -> Fumarate (FAD, FADH2) Fumarate + Fumarase -> Malate (H2O) Malate + Malate-dehydrogenase -> Oxalacetate (NAD+, NADH) Oxa…
Let's begin with the basics. In the first post we took a look at the small Program HelloWorld which printed the message Hello World out into our command line.
This was a very simple program and with a basic command, but when we write scripts or programs that calculate values, or help sorting stuff we will need methods.
We will write a program that calculates the middle value of two fixed values we give the method.
Try to read the code and understand what part stands for what: - class name, main method, what is being called in the main method
So here again in line 1 we have a public class with the class name MiddleVal for Middle Value, then open brackets to open the class body, line 2 contains the main method (which makes this class autonomous in itself) which also calls out method in the 3. line with 2 parameters that we give to the method.
Now we can take a closer look into line 6 - what does the method in line 3 actually do? It's called public static int middleValue and to use this …