Алгоритм поиска max и min в массиве

1 / 1

# Алгоритм поиска max и min в массиве - PowerPoint PPT Presentation

нет. нет. B [ i ] > MaxB. B [ i ] < MinB. да. да. Алгоритм поиска max и min в массиве. MaxB := B [ 1 ] ; Nmax := 1. MinB := B [ 1 ] ; Nmin := 1. i := 2 , 16. i := 2 , 16. MaxB := B [ i ] ; Nmax := i. MinB := B [ i ] ; Nmin := i.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'Алгоритм поиска max и min в массиве' - nikkos

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

нет

нет

B [ i ] > MaxB

B [ i ] < MinB

да

да

Алгоритм поиска max и min в массиве

MaxB := B [ 1 ] ; Nmax := 1

MinB := B [ 1 ] ; Nmin := 1

i := 2, 16

i := 2, 16

MaxB:=B [ i ] ; Nmax :=i

MinB:=B [ i ] ; Nmin :=i

MinB: = B [ 1 ] ; Nmin := 1

MaxB: = B [ 1 ] ; Nmax := 1

для i от 2 до 16 повторять

для i от 2 до 16 повторять

нц

нц

еслиB [ i] > MaxB

еслиB [ i] < MinB

тоMaxB: = B [ i ] ; Nmax :=i

тоMinB: = B [ i ] ; Nmin :=i

кв

кв

кц

кц

вывод MaxB

вывод MinB

вывод Nmax

вывод Nmin