Algorithms

3K

Solutions

8

Articles & Videos

4K

Contributors

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.

Refine results

Hello,

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
A,…

335 views
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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?

139 views

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: http://codepad.org/…

232 views

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) tim…

532 views

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 simpli…

436 views

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.

my questi…

3083 views

Hi:

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 …

1780 views

(CODE)

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:
           …

650 views

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.

238 views

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.


Our produc…

5572 views
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Let there is pretty straightforward classes

(CODE)

I need to create some method that for example increase salary for all employees of the collection.

146 views

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.

552 views

Can you please tell me in question 6 how it calculate the values of 33 and -5

155 views

Homework Question:
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

354 views

How to solve this equation?

c(8, 3) * c(8, 2) / c(16, 5) = 14/39 ≈ 0.36

949 views

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 multiplic…

360 views

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 m…

165 views

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 B'={2,4,6,8,12,14,16…

565 views

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.

565 views
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Let there is pretty straightforward class

(CODE)

(CODE)
I need to create some transform method that convert my employees collection into a String collection with last names of the employees. I…

536 views

Could any gurus shed some light on this? For example,
001011101010101110000111111111111100001010001101011000....
It is very long string, saying up to 2Gb. What algorithm can it be used to compress i…

974 views

This is the best that I can do:
I =1      J=1      K=1
I =1      J=2      K=2 (so when I=1 it has a count of 2)
I =2      J=1      K=1
I =2      J=2      K=2 (so I has a count of 2 here)
I =3      J=1      K=1
I =3      J=2      K=2 (so I has a count of …

1578 views

Hello all, I am trying to get the programming code for my alarm so I can use it on my vehicle the six key characters are 2248CE. I know very little about how these mathematics work so I will give you …

782 views

I'm trying to build a program to sort out a stream of statements into relevant and non-relevant statements with regards to a particular domain name. What algorithms and frameworks would be helpful?

480 views

Hi,

I am working on below challenge
http://codingbat.com/prob/p183837

Psedo code:
1. create new array of given n size
2. loop through given array
3. fill the new array with given array
4. r…

870 views
Show more content
201506-LO-Top-001
Top Experts In
Algorithms
<
Monthly
>

TOP EXPERTS

view all

RELATED TOPICS view all topics

  1. Programming
    (51,891)
  2. Math / Science
    (9,609)
  3. Java
    (98,640)
  4. C++
    (56,908)
  5. Programming Languages-Other
    (19,676)
  6. Programming Theory
    (3,617)
  7. C
    (22,238)
  8. C#
    (91,147)
  9. .NET Programming
    (131,569)
  10. Game Programming
    (5,663)