Click here to Skip to main content
15,914,074 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Better operating system than 64 bit? Pin
OriginalGriff1-Jul-19 19:51
mveOriginalGriff1-Jul-19 19:51 
GeneralRe: Better operating system than 64 bit? Pin
Richard Deeming2-Jul-19 1:28
mveRichard Deeming2-Jul-19 1:28 
QuestionPuchi and Luggage. Wrong Answer for some test cases. Pin
Member 144776851-Jun-19 9:24
Member 144776851-Jun-19 9:24 
SuggestionRe: Puchi and Luggage. Wrong Answer for some test cases. Pin
Richard MacCutchan1-Jun-19 21:32
mveRichard MacCutchan1-Jun-19 21:32 
QuestionWhat kind of structure can it be? Pin
Member 1447661631-May-19 0:24
Member 1447661631-May-19 0:24 
AnswerRe: What kind of structure can it be? Pin
Richard MacCutchan31-May-19 1:09
mveRichard MacCutchan31-May-19 1:09 
QuestionAlgorithm to find maximum sum in an array given that the elements have unique digits Pin
akshit bhatia28-May-19 9:02
akshit bhatia28-May-19 9:02 
AnswerRe: Algorithm to find maximum sum in an array given that the elements have unique digits Pin
Patrice T1-Jun-19 10:12
mvePatrice T1-Jun-19 10:12 
akshit bhatia wrote:
what if someone else tomorrow ask me another question which is as tough as this one is. So how can I prepare these types of questions? What material should I look at?

In my opinion, there is no magic, only experience and study can help you.
- Learn Algorithms and Data-Structures.
- Learn one or more analyze methods, E.W. Djikstra/N. Wirth Stepwize Refinement/top-Down method is a good start.
Structured Programming.pdf[^]
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]

On non trivial problems, only experience can help you to choose the correct combination of algorithms and techniques.
akshit bhatia wrote:
Can anyone think of a good approach in this?

Basically I would explore all combination of values with a backtracking algorithm mixed with a technique to check values compatibility efficiently.
Patrice

“Everything should be made as simple as possible, but no simpler.” Albert Einstein


modified 1-Jun-19 19:20pm.

QuestionXamarin Platform Pin
Member 1447108926-May-19 5:50
Member 1447108926-May-19 5:50 
AnswerRe: Xamarin Platform Pin
OriginalGriff26-May-19 5:51
mveOriginalGriff26-May-19 5:51 
Question[solved] Find the sublist of objects with the highest value without exceeding weight limit Pin
Member 1433642827-Apr-19 2:23
Member 1433642827-Apr-19 2:23 
AnswerRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
OriginalGriff27-Apr-19 2:25
mveOriginalGriff27-Apr-19 2:25 
GeneralRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
Member 1433642827-Apr-19 5:29
Member 1433642827-Apr-19 5:29 
GeneralRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
ChrisFromWales1-May-19 0:09
ChrisFromWales1-May-19 0:09 
GeneralRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
Member 143364281-May-19 6:49
Member 143364281-May-19 6:49 
GeneralRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
Richard Deeming1-May-19 8:09
mveRichard Deeming1-May-19 8:09 
GeneralRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
Member 143364282-May-19 4:19
Member 143364282-May-19 4:19 
GeneralRe: Find the sublist of objects with the highest value without exceeding weight limit Pin
Member 143364281-May-19 11:09
Member 143364281-May-19 11:09 
QuestionAlgorithm to compress Image to RGB565 for embedded screen Pin
XxKeldecknightxX24-Apr-19 8:10
XxKeldecknightxX24-Apr-19 8:10 
AnswerRe: Algorithm to compress Image to RGB565 for embedded screen Pin
Gerry Schmitz24-Apr-19 8:56
mveGerry Schmitz24-Apr-19 8:56 
GeneralRe: Algorithm to compress Image to RGB565 for embedded screen Pin
XxKeldecknightxX24-Apr-19 11:21
XxKeldecknightxX24-Apr-19 11:21 
QuestionGet all groups in 4x4 matrix with width and height of power 2 Pin
Member 142151775-Apr-19 6:59
Member 142151775-Apr-19 6:59 
GeneralRe: Get all groups in 4x4 matrix with width and height of power 2 Pin
Richard MacCutchan5-Apr-19 8:51
mveRichard MacCutchan5-Apr-19 8:51 
GeneralRe: Get all groups in 4x4 matrix with width and height of power 2 Pin
Member 142151776-Apr-19 1:26
Member 142151776-Apr-19 1:26 
GeneralRe: Get all groups in 4x4 matrix with width and height of power 2 Pin
Richard MacCutchan6-Apr-19 4:32
mveRichard MacCutchan6-Apr-19 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.