Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

An Algorithim required for this-->

Status
Not open for further replies.

pravish

Newbie level 5
Newbie level 5
Joined
Feb 25, 2006
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,354
Hey there
consider this..... I have a very large array(2d) that stores integer values ranging from
0-360. i wish to find out those memory locations that contain values ranging from 50-100. Since the array is very large i do not wish to carry out a sequential execution.
There r many locations that have values in the given range, but the number of such locations are relatively less as compared to the array size.
Can anybody suggest me some algorithm to find these memory locations with out checking the array sequentially. Is it illogical???
Thanks
regards

Added after 13 minutes:

and yes ...i do not want to for a searching algo cause i ll be accessing the array just once....kindly suggest something
 

If you don't check every element of the array, how can you be sure you haven't missed a value?

The only alternative I can see is to check the ranges when the array items are entered.

Which may be a failure of my imagination.

In days of yore, some DMA controllers could generate exceptions on pattern matches, but this only puts the sequential search into hardware.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top