GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Jan-2008, 22:23
ahbi82 ahbi82 is offline
Member
 
Join Date: Jul 2006
Posts: 115
ahbi82 will become famous soon enough

Binary search query


Hi folks, i need some help on binary search... a much complex one...

I have a sorted list array which contain keys from 2 different arrays.... name it A1 and A2

My binary search would be seem easy if i search with respect to just the sorted list. BUT the binary search is dynamic in the sense that......... i can select to search with respect to A1, A2 or both.

One very important question is how to skip the non-selected array elements in the while loop, manipulation of the start, end and pivot???

I don't need code, just some pointers.....comments...

I am not using the recursion version. Just the while loop version.

Thanks in adanve!!
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting a node from binary search tree earachefl C++ Forum 3 28-Jun-2006 08:26
Binary Search Tree in C++ rpg3 C++ Forum 5 02-Apr-2006 10:53
Linear Search eccoflame C Programming Language 3 19-Apr-2005 09:36
printing binary search tree nkhambal C Programming Language 2 26-Mar-2005 04:01
Search Engine Positioning 101 and 201 "How To" Tips... 000 Search Engine Optimization Forum 0 29-May-2003 11:34

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:45.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.