Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2014-11-23 19:09:19

pari_alf
Member
Registered: 2013-12-01
Posts: 85

minimum value at specific index is important

Hi everyone!

I am back with new problems.
I have a set of points..

A = { 1 , 5 , 3 , 9 , 1 ,7 , 1 }

Now in the set.. the minmum value is 1 which is at index 0,  4 and 6.

if we find the minimum value from i = 0 to 6 values.. the minimum value 1 at index 0 will be the output. but i need the minimum value at index 4.

In that case, how can get the minimum value at specific index..
For example minimum value  1 at index 4 is important for me.

In that case, what to do?

Kindly help me .
Thanks
Regards,
Pari

Last edited by pari_alf (2014-11-23 19:12:30)

Offline

#2 2014-11-23 19:45:35

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: minimum value at specific index is important

Is this a programming problem?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#3 2014-11-23 20:57:42

Bob
Administrator
Registered: 2010-06-20
Posts: 10,052

Re: minimum value at specific index is important

hi pari_alf

You need to supply a more detailed algorithm.

eg.

Find minimum values
If only one, state its index.

If more than one, what?

(a) state the one in the middle
(b) state the one nearest to index 4
(c) state ..........?

Bob


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

Board footer

Powered by FluxBB