-
Posts
1903 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by fiveworlds
-
How to calculate areas betweens functions?
fiveworlds replied to EudecioGabriel's topic in Mathematics
Here explains it a bit better than the book. I had to study it in college and it's a bit hard to follow. http://tutorial.math.lamar.edu/Classes/CalcI/AreaBetweenCurves.aspx Integrals under the curve always give a negative value so you need to get the absolute value by adding the extra minus sign e.g. for the root 2x+6 -
How to calculate areas betweens functions?
fiveworlds replied to EudecioGabriel's topic in Mathematics
The example he gives says in the case where both are positive Anyway in cases where the curve is below the x-axis you have to split the function into parts and use the absolute value for the area below the x-axis. Obviously if both are on the same side of the x-axis then you take one away from the other and if one is above the x-axis you add. -
Any Tangible Medical Benefits for Circumcision?
fiveworlds replied to Gavinchi's topic in Medical Science
Both occur in small children not grown adults. I had phimosis it is about as painful as a headache the pain goes away if you leave it alone and it doesn't even last that long. Most of the time men will mistake a swolen blood vessel for a UTI which circumcision won't help at all. -
Any Tangible Medical Benefits for Circumcision?
fiveworlds replied to Gavinchi's topic in Medical Science
Wrong, there is no medical benefit to circumcision anymore in biblical times there might have been but not anymore since you can just wash. Also condoms are just as good at reducing the risk of STD transmission. Circumcision gets rid of the foreskin which plays a vital role in peventing the desensitization of the penis, is a natural lubricant and contains millions of nerve ending which make sex more pleasurable. In fact the only reason circumcision caught on is because of sex phobia and the mentality of a generation that thought masturbation was wrong. -
It does sort correctly an example of where bubble sort is greedy is when you include the swap heuristic. for(int x=0; x<n; x++) { for(int y=0; y<n-1; y++) { if(array[y]>array[y+1]) { int temp = array[y+1]; array[y+1] = array[y]; array[y] = temp; } } } greedy public static <E extends Comparable<? super E>> void bubbleSort(E[] comparable) { boolean changed = false; do { changed = false; for (int a = 0; a < comparable.length - 1; a++) { if (comparable[a].compareTo(comparable[a + 1]) > 0) { E tmp = comparable[a]; comparable[a] = comparable[a + 1]; comparable[a + 1] = tmp; changed = true; } } } while (changed); } not all greedy algorithms sacrifice accuracy. However if bubble sort uses the max amount of swaps then the greedy version is slower.
-
A greedy algorithm is an algorithm that sacrifices accuracy for speed an example of which would be bubble sort 99% of the time it sorts correctly 1% of the time it doesn't. The google hashcode competition featured a karnaugh map generation problem for a couple of million zeros and ones and asked people to find the optimal solution. It would be too slow to test every value so participants needed to work out a sub-optimal solution.
-
You have to use brute force testing each possibility. I would recommend doing this on Linux and making use of long or the big integer class. Note the speed of your code is important. Where possible make use of primitives and avoid using class variables.
-
Obviously I meant for the Op to think about the problem through using arrays... ;>
-
Is this homework? How far have you gotten yourself? You obviously can't make a 'tree' in java you will need to use a multi-dimensional array or arrayList. You need to keep track of the letter and the number of occurances of that letter in the text.
-
The grades for physics here aren't all that high elsewhere in the EU you could probably study it here I can't help you with the fees though and it'll all be in english.
-
Graphics card would be an essential especially if you have some modules on game engines etc. Get as good a laptop as you can afford. ASUS Zenbook Pro UX501VW would be a good pick the laptop I use has a gtx 940M so it should be slightly better than mine.
-
I need to learn about OS architecture for a job interview. What are the options for making an operating system from scratch. I am assuming I will probably have to use BSD or GNU in some form is there tutorials online?
-
electrician's guide for the scientifically apt (technique + theory)
fiveworlds replied to MonDie's topic in Book Talk
Yeah the entire thing is over 2000 pages with video lectures etc it is a university level reference so don't expect to learn that quickly. Each volume should take about a year to learn properly so you can expect to spend about 4 years on it. -
electrician's guide for the scientifically apt (technique + theory)
fiveworlds replied to MonDie's topic in Book Talk
Depends on how long you have. It will takes ages to learn I would recommend you follow this tutorial first https://www.allaboutcircuits.com/textbook/ -
What about making use of the fact that the moon has a limited magnetosphere is there anything that we could use to capture electricity from the solar wind/radiation etc? There was a 2008 article using carbon nanotubes packed with gold surrounded by lithium hydride being used to directly convert radiation into electricty. Supposedly radiation exposure on the moon is about the same as working in a uranium mine so would it generate enough electricity? https://www.newscientist.com/article/dn13545-nanomaterial-turns-radiation-directly-into-electricity/
-
what proportion of the world's population never marry today?
fiveworlds replied to mad_scientist's topic in The Lounge
I dunno about globally but here it was 15% for men and 13.5% for women in 2010. -
Fast heart rate problem
fiveworlds replied to Moreno's topic in Anatomy, Physiology and Neuroscience
Diphenhydramine overdose can lead to myocardial infarction it can have a wide half-life between 2.4 and 9.3 hours depending on the person. Therefore limit the dosage in patients which complain of heart problems. -
Okay so basically you want to hack tetris. You would need to screen grab and throw out useless data then work out the dimensions of the game. Then you would read the game's pixel data and note when a collision happened. Sounds like a lot of work much easier to just make tetris.
-
You should know how to do collision detection before you do this. You could for instance increase the speed of the blocks after each collision. Alternatively you could change the difficulty each time a new block is created. Just note that the original tetris game actually had an end and is not infinite. I dunno if the original tetris game was really random it wouldn't make sense if you randomly only got one type of block.
-
Only the earth has a molten core and changing how the earth moves will most likely cause volcanic eruptions and who knows what else.
-
In a vacuum the temperature at which substances boil or become liquid decreases. Nitrogen will evaporate more rapidly than normal and this will have a cooling effect on the remaining nitrogen causing freezing.
-
It works out at about 12 miles an hour. 6786 moon circumference/24/28
-
Wherever is day surely it is possible to make something that will move on solar power. Don't forget the moon is a lot smaller than earth and rotates way slower.
-
What is stopping you staying on the bright side of the moon??