properties of $min(x_1…x_n)$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to take measurements of algorithm performance. I have two algorithms A and B that run one after the other (composition)



I want to measure how well the composition of algorithms is better than the algorithms individually.



I propose to get run times of A and B individually as rA and rB and their run times when composed together as prA and prB (pr for partial run time)
and take the min(prA/rA, prB/rB) as a performance metric.



What properties does min(x,y) have? I know max(x,y) gives the $L^infty$ norm on $mathbbR^2$ but what about min? What other performance metrics are good for comparing a composition of algorithms?







share|cite|improve this question





















  • I wanted to note that taking min may be a bad idea since we may have min(1,.5)= min(.5,.5) but clearly .5 run time ratio for both algorithms A and B is better than one, say A, with .5 ratio and the other, say B, with no improvement. Either way, what are properties of min(x,y)? I was also thinking of a performance metric like ax+by where a and b are constant weights and x and y are variables. what are properties of ax+by? certainly we get equivalence classes of slanted lines.
    – user352102
    Jul 19 at 23:44











  • Also, how about (prA+prB)/(rA+rB)?
    – user352102
    Jul 19 at 23:51














up vote
1
down vote

favorite












I want to take measurements of algorithm performance. I have two algorithms A and B that run one after the other (composition)



I want to measure how well the composition of algorithms is better than the algorithms individually.



I propose to get run times of A and B individually as rA and rB and their run times when composed together as prA and prB (pr for partial run time)
and take the min(prA/rA, prB/rB) as a performance metric.



What properties does min(x,y) have? I know max(x,y) gives the $L^infty$ norm on $mathbbR^2$ but what about min? What other performance metrics are good for comparing a composition of algorithms?







share|cite|improve this question





















  • I wanted to note that taking min may be a bad idea since we may have min(1,.5)= min(.5,.5) but clearly .5 run time ratio for both algorithms A and B is better than one, say A, with .5 ratio and the other, say B, with no improvement. Either way, what are properties of min(x,y)? I was also thinking of a performance metric like ax+by where a and b are constant weights and x and y are variables. what are properties of ax+by? certainly we get equivalence classes of slanted lines.
    – user352102
    Jul 19 at 23:44











  • Also, how about (prA+prB)/(rA+rB)?
    – user352102
    Jul 19 at 23:51












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I want to take measurements of algorithm performance. I have two algorithms A and B that run one after the other (composition)



I want to measure how well the composition of algorithms is better than the algorithms individually.



I propose to get run times of A and B individually as rA and rB and their run times when composed together as prA and prB (pr for partial run time)
and take the min(prA/rA, prB/rB) as a performance metric.



What properties does min(x,y) have? I know max(x,y) gives the $L^infty$ norm on $mathbbR^2$ but what about min? What other performance metrics are good for comparing a composition of algorithms?







share|cite|improve this question













I want to take measurements of algorithm performance. I have two algorithms A and B that run one after the other (composition)



I want to measure how well the composition of algorithms is better than the algorithms individually.



I propose to get run times of A and B individually as rA and rB and their run times when composed together as prA and prB (pr for partial run time)
and take the min(prA/rA, prB/rB) as a performance metric.



What properties does min(x,y) have? I know max(x,y) gives the $L^infty$ norm on $mathbbR^2$ but what about min? What other performance metrics are good for comparing a composition of algorithms?









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 19 at 22:58









Bernard

110k635103




110k635103









asked Jul 19 at 22:55









user352102

34028




34028











  • I wanted to note that taking min may be a bad idea since we may have min(1,.5)= min(.5,.5) but clearly .5 run time ratio for both algorithms A and B is better than one, say A, with .5 ratio and the other, say B, with no improvement. Either way, what are properties of min(x,y)? I was also thinking of a performance metric like ax+by where a and b are constant weights and x and y are variables. what are properties of ax+by? certainly we get equivalence classes of slanted lines.
    – user352102
    Jul 19 at 23:44











  • Also, how about (prA+prB)/(rA+rB)?
    – user352102
    Jul 19 at 23:51
















  • I wanted to note that taking min may be a bad idea since we may have min(1,.5)= min(.5,.5) but clearly .5 run time ratio for both algorithms A and B is better than one, say A, with .5 ratio and the other, say B, with no improvement. Either way, what are properties of min(x,y)? I was also thinking of a performance metric like ax+by where a and b are constant weights and x and y are variables. what are properties of ax+by? certainly we get equivalence classes of slanted lines.
    – user352102
    Jul 19 at 23:44











  • Also, how about (prA+prB)/(rA+rB)?
    – user352102
    Jul 19 at 23:51















I wanted to note that taking min may be a bad idea since we may have min(1,.5)= min(.5,.5) but clearly .5 run time ratio for both algorithms A and B is better than one, say A, with .5 ratio and the other, say B, with no improvement. Either way, what are properties of min(x,y)? I was also thinking of a performance metric like ax+by where a and b are constant weights and x and y are variables. what are properties of ax+by? certainly we get equivalence classes of slanted lines.
– user352102
Jul 19 at 23:44





I wanted to note that taking min may be a bad idea since we may have min(1,.5)= min(.5,.5) but clearly .5 run time ratio for both algorithms A and B is better than one, say A, with .5 ratio and the other, say B, with no improvement. Either way, what are properties of min(x,y)? I was also thinking of a performance metric like ax+by where a and b are constant weights and x and y are variables. what are properties of ax+by? certainly we get equivalence classes of slanted lines.
– user352102
Jul 19 at 23:44













Also, how about (prA+prB)/(rA+rB)?
– user352102
Jul 19 at 23:51




Also, how about (prA+prB)/(rA+rB)?
– user352102
Jul 19 at 23:51















active

oldest

votes











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2857117%2fproperties-of-minx-1-x-n%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2857117%2fproperties-of-minx-1-x-n%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?