Can anyone help me with searching for a particular address in a given range in C. like i have to search for *ptr in range specified by *high and *low. i think it is not same as linear search. can someone provide some input. thanks.
2 replies to this topic
#1
Posted 20 November 2010 - 01:31 AM
|
|
|
#2
Posted 20 November 2010 - 02:03 AM
Hi,
If I've understood correctly, you want to find a value in a linked list. If yes, then you may want to organize your data in form of binary tree: which makes the searching faster!
Munir
If I've understood correctly, you want to find a value in a linked list. If yes, then you may want to organize your data in form of binary tree: which makes the searching faster!
Munir
#3
Posted 20 November 2010 - 02:10 AM
basically i m making a garbage collector in c. so i have high and low address of stack. i want to check whether a memory location, which was allocated by malloc lies between high and low of stack. so i need a function for finding if a particular memory address lies in a given address range
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









