473,503 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Algorithm for searching student database

2 New Member
Hi,
I am working on a school database management project. I want to make a search program in c++ which could run on thousands of records and can list down records with particular fields, like say the list of all children with birthday on a specific day, or list of all children with name Frank. Which algorithm will be best suited in terms of timing?


Thanks.
Mar 28 '10 #1
3 3734
jkmyoung
2,057 Recognized Expert Top Contributor
So many ambiguities:
Why aren't you using the specified query language for this database?
How are you connecting to the database?
Are you sorting the database?
Are you indexing the database?
Are particular searches repeated over and over?

I'm not sure how this is immediately related to algorithms.
Mar 29 '10 #2
cppandchelseaFan
2 New Member
Hi,

I dont have access to the database directly, I am just using a library which is providing some APIs.

Thats why, want to implement the whole thing in C++ :))
Mar 29 '10 #3
jkmyoung
2,057 Recognized Expert Top Contributor
What library are you using, and how are you using it so far? I'm assuming you already have a solution but are finding it too slow.
Mar 29 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1383
by: mythis | last post by:
Hey guys, I seem to be having a problem with part of my code. This code is supposed to connect to a database and perform a query to get all the name fields in all the records. The program then...
14
4608
by: vic | last post by:
My manager wants me to develop a search program, that would work like they have it at edorado.com. She made up her requirements after having compared how search works at different websites, like...
2
6449
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
7
1950
by: Clint Norton | last post by:
Hi all, I'm a student currently in the beginning of my master's degree and I'm searching for an interesting open source project written in Python to contribute to. I have worked as a programmer...
10
4956
by: bpontius | last post by:
The GES Algorithm A Surprisingly Simple Algorithm for Parallel Pattern Matching "Partially because the best algorithms presented in the literature are difficult to understand and to implement,...
2
1574
by: Peter Schmitz | last post by:
Hi again, I just need to write the following function to search in a binary buffer for a given pattern: BOOL CheckBufferForPattern(BYTE *buffer,int bufferlen,BYTE *pattern, int patternlen,...
6
2267
by: Bernie Yaeger | last post by:
I need a little help with an algorithm. Let's say I have an array with 15 items. I want to find "Fern" where there are "Able", "Me Also", "Zimmerman", etc in no particular order. Forget about...
4
5320
by: Hunk | last post by:
Hi I have a binary file which contains records sorted by Identifiers which are strings. The Identifiers are stored in ascending order. I would have to write a routine to give the record given...
2
3968
by: jehugaleahsa | last post by:
Hello: I have a bunch of related items that are either parents, children or not directly related to each other. In my case, I have a bunch of database tables joined with foreign keys. Another...
2
1597
by: napsters | last post by:
Hello...I want to make something in VB (Version 9) that reads multiple data from specified file (Access 2007) and displays content in list box. If file doesn't exist, alert user. More...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.