473,507 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Discrete math

Can anyone suggest some resources (websites/books) to learn coding
discrete math problems?
I have a problem involving sets,relations and functions and even
though the logic is clear I dont know the syntax for inputting
relations as ordered pairs, testing for functions, compositions and
inverses etc.

Feb 10 '07 #1
2 2062
zf*****@umd.umich.edu wrote:
Can anyone suggest some resources (websites/books) to learn coding
discrete math problems?
I have a problem involving sets,relations and functions and even
though the logic is clear I dont know the syntax for inputting
relations as ordered pairs, testing for functions, compositions and
inverses etc.
What is your C++ question? Shouldn't you go to 'sci.math.*'?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Feb 10 '07 #2
zf*****@umd.umich.edu wrote:
Can anyone suggest some resources (websites/books) to learn coding
discrete math problems?
I have a problem involving sets,relations and functions and even
though the logic is clear I dont know the syntax for inputting
relations as ordered pairs, testing for functions, compositions and
inverses etc.
To model functions in C++, you can use std::map<>. To model relations, you
could use std::multiset<>. This assumes that you are mainly applying these
relations and functions in a forward fashion (first coordinate search is
fast, dependent variable search is linear). If you need a more symmetric
data structure, you can use two (multi)maps, one for the function/relation,
and one for its inverse. Adding a pair is done by the insert() member
function.

This might get you started. If you get stuck, post a piece of code that
demonstrates the problem.
Best

Kai-Uwe Bux
Feb 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1744
by: Sim Nanda | last post by:
Hello All, I'm looking for a data class that can take a floating point input and round it to the nearest float based on a predefined set of boundaries. In other words, an arbitrary float comes in...
2
1334
by: Mike | last post by:
I'm more unsure of myself these days: Given a result set of rows with discrete date intevals; but rows may be non contiguous in nature; Can a simple, non cursor driven query produce a result with...
2
2311
by: Francois Vanderseypen | last post by:
Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels (.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of the game of life. I would like to draw a line in...
10
5234
by: jack | last post by:
Hi guys, I am working on a project which requires an implementation of discrete event simulation in C using linked lists. I would greatly appreciate if someone could provide with some sources...
0
1198
by: Alison Givens | last post by:
I have the following problem. (VB.NET 2003 with CR) I have a report with a multiple-value discrete value and a rangevalue. The report shows fine in the viewer, but when I hit the export to pdf...
1
4928
by: khaleel.alyasini | last post by:
anyone could point me out where did i do wrong? it seems that i can't get back the original Lena image after the IDCT(inverse discrete cosine transform) process. the output raw image is nothing...
0
1796
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
0
2782
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
3
8875
by: illusion.admins | last post by:
Has anyone had experience with or implemented a Discrete Cosine Transform in C#? Found code for FFT which I have taken advantage of and modified for my use but can not find a thing for DCT. Any...
0
7223
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
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
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,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5623
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
4702
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
3191
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
1544
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 ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.