Jump to content

1D array search implementation


kodon1

Recommended Posts

Hi,

 

I need to implement some sort of a 'search 1D array' function, but only with simple functions.

This means that I can use loops and cases and other simple functions (numeric. boolean, comparison) but not much more than that.

 

The challenge that I'm facing is to create a smaller array out of a bigger one. I wasn't able to find a way up until now.

 

Hope that you'd have some ideas.

 

thanks

Link to comment

That is different requirements from the Search 1D Array.  If you want the all of the indecies that match, then still use the FOR loop, but use a conditional indexing output tunnel that is wired to the i terminal.  Your condition should be if the current item matches the lookup item.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.