1,312 reputation
521
bio website
location United States
age
visits member for 2 years, 2 months
seen Apr 19 at 17:39

Jun
17
comment Implementing a function which generalizes the merging step in merge sort
I think I know what is going on now. There is some caching going on in the previous section, thus the comment on clearMergeJITCache.
Jun
17
comment Implementing a function which generalizes the merging step in merge sort
You evaluated mergeList[huge1,huge2,Less,CompileToC -> True]//Short//AbsoluteTiming twice at the beginning of the Benchmarks section, but the timing results are significantly different. Am I missing something here?
Jun
17
comment Implementing a function which generalizes the merging step in merge sort
The difference in performance is astounding: 0.12s vs 1.23s for lists of lengths 10000 and 1.13s vs 146.60s for lists of length 100000. I find it reassuring that even without making significant changes to the straightforward recursion, I can get major performance boost by switching to linked lists. Perhaps reading The Little Schemer did not cause too much harm.
Jun
17
revised Implementing a function which generalizes the merging step in merge sort
Added sample output
Jun
17
comment Implementing a function which generalizes the merging step in merge sort
@Rojo Thanks for pointing out the ambiguity. I edited the question.
Jun
17
revised Implementing a function which generalizes the merging step in merge sort
Added clarification in response to question by Rojo
Jun
17
comment Implementing a function which generalizes the merging step in merge sort
@Rojo For MergeList, the two lists need not be sorted. For example, MergeList[{2, 5, 1}, {3, 4}, LessEqual] evaluates to {2, 3, 4, 5, 1}.
Jun
17
asked Implementing a function which generalizes the merging step in merge sort
Jun
16
awarded  Autobiographer
Jun
15
comment How to substitute numeric values in a symbolic Jacobian matrix?
+1 for explaining what went wrong in M.J.'s code and the use of ArrayRules + ArrayPlot.
Jun
15
revised How to substitute numeric values in a symbolic Jacobian matrix?
deleted 395 characters in body
Jun
15
revised How to substitute numeric values in a symbolic Jacobian matrix?
Updated following M.J.'s comments
Jun
14
comment How to substitute numeric values in a symbolic Jacobian matrix?
@J.M. I did not know that variables for D need not be a symbol. This is good to know.
Jun
14
revised How to substitute numeric values in a symbolic Jacobian matrix?
I forgot to define `variableVector`
Jun
14
revised How to substitute numeric values in a symbolic Jacobian matrix?
added 192 characters in body
Jun
14
revised How to substitute numeric values in a symbolic Jacobian matrix?
Stylistic changes, added method to generate vector of variables symbolically
Jun
14
answered How to substitute numeric values in a symbolic Jacobian matrix?
Jun
14
awarded  Civic Duty
Jun
13
comment Interprocedural optimization
It is possible to compute PrimePi[n] without enumerating all prime numbers less than $n$. See for example Lehmer's recursive formula.
Jun
13
revised How do you check if there are any equal arguments(even sublist) in a list?
Changed the name of the second function since it is no longer a Boolean function.