Click here to Skip to main content
15,885,910 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: A very interesting question for you all Pin
Luc Pattyn8-Feb-18 14:59
sitebuilderLuc Pattyn8-Feb-18 14:59 
Questionpython code on Effect of order of accuracy on the numerical differentiation Pin
Member 1362564316-Jan-18 1:32
Member 1362564316-Jan-18 1:32 
GeneralRe: python code on Effect of order of accuracy on the numerical differentiation Pin
harold aptroot17-Jan-18 23:28
harold aptroot17-Jan-18 23:28 
QuestionCompare products in Cart against min/max limitations Pin
Rico6419-Dec-17 7:07
Rico6419-Dec-17 7:07 
AnswerRe: Compare products in Cart against min/max limitations Pin
Gerry Schmitz21-Dec-17 11:04
mveGerry Schmitz21-Dec-17 11:04 
GeneralRe: Compare products in Cart against min/max limitations Pin
Rico6422-Dec-17 0:42
Rico6422-Dec-17 0:42 
AnswerRe: Compare products in Cart against min/max limitations Pin
Richard MacCutchan21-Dec-17 21:40
mveRichard MacCutchan21-Dec-17 21:40 
QuestionWriting a Sorting Algorithm -- NEED HELP! Pin
Member 135671429-Dec-17 11:36
Member 135671429-Dec-17 11:36 
NOAA's National Centers for Environmental Information collects global climate data and aggregates this data to provide information on climate trends and variability. One product they offer is a monthly regional analysis. The following table gives "anomaly" data by continent for January 2017. "Anomaly" means the value is the temperature difference from the average temperature from years 1910–2000.

Continent Anomaly (C)
North America 3.18
South America 1.36
Europe -0.12
Africa 0.53
Asia 1.92
Oceania 0.98

Assignment task:

Your task is to develop an algorithm that would sort data such as these from least to greatest. Specifically, given an unsorted set of N decimal values, your algorithm should sort them to give an answer of the sorted data. For this set of N = 6, your algorithm should produce:

-0.12
0.53
0.98
1.36
1.92
3.18

Execute your algorithm for a different set of data, such as a subset of the given data, data you make up, or another month's climate data, such as February 2017: https://www.ncdc.noaa.gov/sotc/global-regions/201702

Does your algorithm work for any N? Have you thought of corner cases it might need to handle, such as N = 0 or N = 1?
AnswerRe: Writing a Sorting Algorithm -- NEED HELP! PinPopular
Gerry Schmitz10-Dec-17 1:09
mveGerry Schmitz10-Dec-17 1:09 
AnswerRe: Writing a Sorting Algorithm -- NEED HELP! Pin
Richard MacCutchan10-Dec-17 1:22
mveRichard MacCutchan10-Dec-17 1:22 
GeneralRe: Writing a Sorting Algorithm -- NEED HELP! Pin
Jc Christ5-Jun-20 1:57
Jc Christ5-Jun-20 1:57 
AnswerRe: Writing a Sorting Algorithm -- NEED HELP! PinPopular
Richard Deeming11-Dec-17 1:58
mveRichard Deeming11-Dec-17 1:58 
AnswerRe: Writing a Sorting Algorithm -- NEED HELP! Pin
Member 1488614010-Jul-20 3:04
Member 1488614010-Jul-20 3:04 
GeneralRe: Writing a Sorting Algorithm -- NEED HELP! Pin
Dave Kreskowiak23-Jul-20 3:39
mveDave Kreskowiak23-Jul-20 3:39 
QuestionA permutation problem Pin
Member 135615816-Dec-17 4:04
Member 135615816-Dec-17 4:04 
AnswerRe: A permutation problem Pin
Richard MacCutchan6-Dec-17 4:09
mveRichard MacCutchan6-Dec-17 4:09 
AnswerRe: A permutation problem Pin
Luc Pattyn20-Dec-17 12:03
sitebuilderLuc Pattyn20-Dec-17 12:03 
QuestionAlgorithm for insert element in compressed sparse row matrix Pin
drudox 16-Nov-17 4:23
drudox 16-Nov-17 4:23 
QuestionNo-intersection edge detection. Pin
primem0ver11-Nov-17 6:19
primem0ver11-Nov-17 6:19 
QuestionDatagap finder Pin
V.7-Nov-17 0:10
professionalV.7-Nov-17 0:10 
AnswerRe: Datagap finder Pin
Peter_in_27807-Nov-17 0:46
professionalPeter_in_27807-Nov-17 0:46 
AnswerRe: Datagap finder Pin
Gerry Schmitz7-Nov-17 12:21
mveGerry Schmitz7-Nov-17 12:21 
QuestionPrefix sum: GenomicRangeQuery Pin
Yugo Amaryl5-Nov-17 23:20
Yugo Amaryl5-Nov-17 23:20 
AnswerRe: Prefix sum: GenomicRangeQuery Pin
Gerry Schmitz6-Nov-17 6:08
mveGerry Schmitz6-Nov-17 6:08 
AnswerRe: Prefix sum: GenomicRangeQuery Pin
honey the codewitch17-Jan-18 17:02
mvahoney the codewitch17-Jan-18 17:02 

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.