Articles & Videos
An algorithm is a self-contained step-by-step set of operations to be performed. Algorithms exist that perform calculation, data processing, and automated reasoning. Starting from an initial state and initial input (perhaps empty), the instructions describe a computation that, when executed, proceeds through a finite number of well-defined successive states, eventually producing "output" and terminating at a final ending state. The transition from one state to the next is not necessarily deterministic; some algorithms, known as randomized algorithms, incorporate random input.
Assuming a given time for sunrise or sunset at sea level, what adjustment have to be made to those times for a given altitude (i.e. 2400 feet).
I'm a little lacking in the statistics area - more like a lot.
I have a list of numbers in excel that I think might be related to a stock price trend.
There are about 2000 + representing each day …
When there is a disconnect between the intentions of their creator and the recipient, when algorithms go awry, they can have disastrous consequences.
I have the need of being able to generate random directed, cyclic graphs, but according to some constraints.
I would like to input a few parameters/constraints, and obtain a random directed graph …
Could you please help me to resolve the following task:
In the text file I have the matrix of connections between points together with the weights for each pair, for instance:
A, B, 10
If I have conversion rate from USD to GBP how can I get the rate to reverse it so that I can covert from GBP to USD?
I have been trying to execute this code but I keep getting segmentation fault. I'm guessing there is some pointer mistake but I'm not able find it. Please help!
Link of my code: …
Hello, I was wondering if its possible to have m buckets, and n elements and finding the most filled bucket in O(1) time without any sorting. Searching through the buckets would take at least O(m) …
Let's say there are 12 games being played. One entry in the contest consists of picking the winners of any 7 of the 12 available games. I need all 7 to be correct to win. For the purposes of …
we all can agree that in a pure sorting methodology, the good old quick sort is likely best.
this assumes a 0 cost for actually moving the element from one sorting position to another.
I have an interesting problem I need to solve.
I'm sure that someone has encountered this somewhere
and that an elegant solution exists.
I'm trying to write an method which increments and …
I need to implement toString to represent a tree like (also each level can be a separate line):
(n1(n11(n111, n112), n12(n121, n122)))
that corresponds to tree hierarchy:
I have data that is arranged this way (see below) and need to calculate the Dispersion = Standard Deviation/Average of Total_NR rolled up by the MGR_NAME. How can I achieve this in T-SQL? Thank you.
This might be a VERY broad question but will aid me in the right direction. After a customer orders there will be a picking list generated for the picker to collect the items on the list.
Let there is pretty straightforward classes
I need to create some method that for example increase salary for all employees of the collection.
Can you explain it in a different way. I copied it in the class but don't understand it how exactly the calculations are performed.
Can you please tell me in question 6 how it calculate the values of 33 and -5
I am not sure if I did it right. If its wrong can you tell me which direction I should be going to?
a) p=310/1000 =0.31
odds for 31/100
b) p=600/1000 =0.6
odds for 3/5
How to solve this equation?
c(8, 3) * c(8, 2) / c(16, 5) = 14/39 ≈ 0.36
Can you please tell me why the calculations are wrong?
CORRECT ANSWER IS B
The 1st person can pick anyone. the remaining 3 must each pick the same person, with Pr = 1/5,
thus by the …
This question was solved in the class. My issue in this question is I know A U B means combine all elements in set A with set B. A intersection B means common values in set A and set B. A compliment …
My teacher shows this in the class but I dont understand it. Is it ok if experts can explain this question? I donot understand how it calculate the B'? According to my calculation …
My teacher solved some questions in class but I don't understand them. I am just wondering if I am allowed to post these questions if experts can explain them.
Let there is pretty straightforward class
I need to create some transform method that convert my employees collection into a String collection with last names of the employees. …
Okay. So what exactly is the problem here? How often have we come across situations where we need to know if two strings are 'similar' but not necessarily the same? I have, plenty of ti…
This algorithm (in C#) will resize any image down to a given size while maintaining the original aspect ratio. The maximum width and max height are both optional but if neither are given, the original ima…
Vladivostok, Russian Federation
1,800 points this week
200 points this week
San Luis Obispo, California, United States
63 points this week
San Luis Obispo, California, United States
13 points this week
11 points this week