473,425 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

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 2060
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
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
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
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
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
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
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
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
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.