3,815 Topics

Member Avatar for
Member Avatar for apcxpc

Hi all Here is a question from my assignment in Algorithms & Complexity Theory. I'm having a problem with part 2. A continuous function f(x) such that f(a) and f(b) have opposite signs must have a zero (a point x such that f(x)=0) in the interval [a,b]. By checking whether …

Member Avatar for apcxpc
0
185
Member Avatar for vancasas
Member Avatar for princeinc

can anyone pls help me to complete this questions?? i'm new in programming , n i'm not very sure how to even start to do this programs....so help needed urgently..preferably the program can be done in Java or C ++... thank u No1. Develop a program to simulate a computer …

Member Avatar for freesoft_2000
0
119
Member Avatar for vancasas
Member Avatar for vancasas
0
62
Member Avatar for switty

Hi! I need help! Im a graduating student and Im sick and tired of thingking and surfing the net of what Thesis Title would I propose :mad: , then I got hooked in this cool site(thank GOD! :lol: ) Im quite good in VB6, not exactly good in JAVA, C++ …

Member Avatar for switty
0
97
Member Avatar for -Job-

Could anyone confirm if for every algorithm running on some architecture M, there is an equivalent boolean function, and that the length of this boolean function is proportional to the runtime of the algorithm? Meaning that if A is a polynomial algorithm, then the corresponding boolean function f is also …

Member Avatar for -Job-
0
137
Member Avatar for Arhianne

hi guys i really need your help about my project.... my project goes like this.......CREATE A C PROGRAM THAT WILL ILLUSTRATES CPU SCHEDULING ALGORITHM TECHNIQUES IN GRAPHICS AND PULL DOWN MENU MODE.... IM hoping for your reply soon... thank you in advance....God bless you all.... :cool:

Member Avatar for Dante Shamest
0
123
Member Avatar for khan_069

Hi i have a programming problem ;) I have a set of number(there is no limit must be dynamic) and i want to find out the unique numbers from the set i.e numbers which are not repeated. Observation: 1) No. of element in set should not be limited 2) Algorithm …

Member Avatar for Lerner
0
122
Member Avatar for wu7jian

[code] #include<algorithm> #include<string> #include<vector> #include<functional> #include<iostream> using namespace std; class WordCompare:binary_function<string,string,bool> { public: bool operator()(const string&a ,const string& b) { if(a.at(0)==b.at(0)) return true; else return false; } }; int main() { vector<string>MainText; vector<string>TempString; vector<string>::iterator i; MainText.push_back("All"); MainText.push_back("art"); MainText.push_back("is"); MainText.push_back("quite"); MainText.push_back("useless"); TempString.push_back("quite"); TempString.push_back("unique"); i=search (MainText.begin(),MainText.end(),TempString.begin(), TempString.end(),WordCompare()); if(i==MainText.end()) cout<<"The substring is not …

Member Avatar for Stoned_coder
0
116
Member Avatar for jewboy

A Yahoo Weather Report from the official blog: [url="http://www.ysearchblog.com/"]http://www.ysearchblog.com/[/url] Y! is in the midst of upgrading their algorithm. Many are noticing their keywords positions jumping all over the place. The storm will last approximately 2 weeks according to the blog entry. The search engine was offline for a brief period. …

Member Avatar for jewboy
0
118
Member Avatar for zeek

hello guys, i would like to ask again about this: i am trying to divide two large-digit numbers (up to say 100 digits) using C. I thought of one approach but trying to code it, it seems so complicated... can anyone help me give an algorithm or a code to …

Member Avatar for vegaseat
0
284
Member Avatar for zauber

Hello, I started coding a little app for exploring the mandelbrot fractal. Hopefully someone here is familiar with it, and perhaps tried coding it in python. My problem is, as you will see if you try running my code, is that the generated image is NOT the mandelbrot (although it …

Member Avatar for vegaseat
0
151
Member Avatar for mu42774

Hi, By the way, I used JAVA to run this simulator.However, my question is, I have to deliver this part of the assignment by 7th of August, but I am not sure if whatever I tried to explain on the [B]Explanation for the Summary Result File for TWO processes in …

Member Avatar for Sauce
0
121
Member Avatar for desidude

hi , Please take a moment to read this i am trying to write hexadecimal.cpp program for my C++ programming class but i dont know how to do it. the Project says as follows You have to design and implement a C++ program that reads numbers from a file,converts them …

Member Avatar for Kazastankas
0
265
Member Avatar for senexom

Hey does anyone know of a way to crop images automatically while still focusing on the subject in the photo? I have a gallery of pictures and I would like to make all the thumbnails square shaped, just thought maybe someone knows if there is such a thing as smart …

Member Avatar for senexom
0
90
Member Avatar for Saarch

Hey there I just took over a redhat 8 server recently and I noticed that it sends out drive stats everymorning with status and/error reports. I'm building a clone of this server and I would like to know how you set this up and to enable it to e-mail me …

0
96
Member Avatar for Awais348

This is My Assignment and i not do this completely please try to solve it. After the completion of this assignment you’ll be able to: Understand and implement the CPU scheduling algorithms and comprehending the power of simulation in evaluating competing algorithms. There are two portions to the assignment: • …

Member Avatar for Catweazle
0
152
Member Avatar for Naseer

Use the CPU trace generator to generate jobs (or process) traces and simulate the following algorithms 1. Shortest remaining time next (aka Shortest Job First with pre-emption, aka SJF, shortest next burst time). 2. Round-Robin with user set-able time quantum (the time quantum should be a userset-able command line parameter. …

Member Avatar for alc6379
0
215
Member Avatar for JSThePatriot

Okay I use Dev-C++ as my IDE. I have never linked my own files. I am pretty much a noob on C++, but not to programming in general. My issue that I have been almost pulling my hair out with is this. I am using a premade MD5 header file …

Member Avatar for oboler
0
150
Member Avatar for oRg

Hi, I'm fairly new to C++. I've taken a class on it at a university but it really only went through the basic I/O, data structures, classes, and pointers. It wasn't very algorithm oriented. It was all very basic. Here's the problem a friend of mine needed help with his …

Member Avatar for oRg
0
443
Member Avatar for curvan

Plz..................Have some one know how to use the C++ to solve the Map-Cloring problem using Hill-Climbing Algorithm>? mean; I need to develop a program to solve the Map-Cloring problem using Hill-Climbing Algorithm...This regarding the AI method... :cry:

0
68
Member Avatar for komalac

Hi All, Can any on guide me in the logic / algorithm to implement 2 stacks using one array and a queue using 2 stacks. I need this very urgently. Thanks in advance. Komala

Member Avatar for Dave Sinkula
-1
245
Member Avatar for petethepop

I'm not a c-programmer, rather a guy who inherited a system that previously had an I/Q demodulation in a gate array, need to move it into c-code. I have 1024 sample buffer that was synchronously digitized with x4 clock, so samples are alternately +I, +Q, -I, -Q,....... Need a snippet …

Member Avatar for petethepop
0
234
Member Avatar for JohnHull

Write C functions to perform the following tasks: Given a sorted double array x[i], i=0 to n and a double t, write a function which uses a binary search algorithm to find k such that x[k ¡ 1] < t <= x[k]. Many thanks for your help!

Member Avatar for JohnHull
0
139
Member Avatar for student113

hay i need to build a simple program in C# or C++ about robot that need to find the short and optimal way from one point to other on ground that have just 3 obstacle that look like rectangle or 2 rectangles connected . how can i insert in AI …

Member Avatar for Dani
0
168
Member Avatar for student113

hay i need to build a simple program in C# or C++ about robot that need to find the short and optimal way from one point to other on ground that have just 3 obstacle that look like rectangle or 2 rectangles connected . how can i insert in AI …

0
42
Member Avatar for TheComputerGeek

[size=2]By: Jeff Johnston [b][i]IO Scheduling Improvements [/b][/i]Thanks to a new IO scheduler in Linux Kernel 2.6 it is possible to achieve speed increases on standard desktop style workloads of up to 1000% according to Andrew Morton of Open Source Development Labs (OSDL). The speed increase is thanks to the wait-before-seek …

Member Avatar for servertweak
1
436
Member Avatar for Eager Student

Hi! everyone I'm starting out in programming,I need a pseudocode or flowcharting to use to help me get started on coding(JavaScript and HTML). Often, when I take a look at a coding assignment, it looks daunting, and it's hard to figure out exactly where to start. Especially with all of …

Member Avatar for Eager Student
0
148
Member Avatar for madt

i have the following for my operator overload [code]fraction fraction::operator+(const fraction& object)const { fraction temp; temp.a = a*object.b + b*object.a; temp.b = b * object.b; return temp; } fraction fraction::operator-(const fraction& object) const { fraction temp; temp.a = a*object.b - b*object.a; temp.b = b * object.b; return temp; } fraction …

Member Avatar for Dave Sinkula
0
260
Member Avatar for philip.xavier

I'm trying to write an Ascii STL file ysing a poly_shade command in IDL. basically it outputs vertices and polygons where the first numbe rin polygons is the number of vertices and the following numbers are the vertices that are connected. I havn't been able to find any software or …

Member Avatar for philip.xavier
0
394
Member Avatar for bsrivastava

[I][COLOR=Red]Moderator edit: This response and its replies have been split from the C and C++ Timesaving Tips sticky because they do not add relevant material, and they are long enough to distract from the intended purpose of the thread. Further replies on this topic may be posted in this thread, …

Member Avatar for Narue
0
220
Member Avatar for Valmont

Reference reading directly related to this post: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html Hi all. I've just started learning the ways of compression. I decided to start with the LZ algorithm. The resource I use is: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html I understand the fundamentals of parsing the incoming text. Let's call the container that …

Member Avatar for Narue
0
172
Member Avatar for feda

Greeting , it will be helpful if any one can provide me with Round Robin algorithm code in c/c++ thanks in-advance

Member Avatar for Narue
0
194
Member Avatar for apurva agarwal
Member Avatar for Narue
0
338
Member Avatar for apcxpc

I've got to implement Prolog in C++ for an assignment. I'm very new to C++, it's a little daunting. Also, I have no idea of where to start. Can someone point me to some basic algorithm and/or some resources online?

Member Avatar for apcxpc
0
391
Member Avatar for winbatch

Hi, I've been experimenting with STL on solaris with the 7.0 sun compiler. I am able to write programs using string, map, vector, list, etc. however, I am trying to use hash_map and can't get the most basic (ie hash_map<string,string> h; ) to compile. It appears that hash_map is not …

Member Avatar for winbatch
0
217
Member Avatar for Lalli10

Thing is I want a small painted ball to travel from point A to Point B combined with a timer so I can see it move. I know the mathematical side of the problem and have come up with this: int abX = pointA.getX() - bointB.getX(); // abX is the …

0
102
Member Avatar for dazzer143

i'm having a trouble getting this right .. Write a program to calculate parking fee for customers who park their vehicles in a parking lot when the following information is given: The time the vehicle entered the lot (in 24-hour format, without a colon, such as 1645) The time the …

Member Avatar for peter_budo
0
224
Member Avatar for nabil1983

Can someone explain this sort algorithm to me and how i can make a more efficient version, justifying the changes. for (int p = 0; p<n-1; p++) for (int counter = 0;counter < n-1; counter++) if (a[counter]> a[counter+1]) swap(a, counter, counter+1); Apreciate all help.

Member Avatar for jwenting
0
157
Member Avatar for nabil1983

Hello Everyone. Just a couple of questionsn i wanted to know. can someone explain what is meant by an index array and why its use can improve the efficiency of sorting? Can someone give me a more efficient verson of the sort algorithm below with reasons why its more efficient?? …

Member Avatar for tonakai
0
134
Member Avatar for koolguysj

[code] #include <stdio.h> #include "Boolean.h" #include "combinatorics.h" /* For all the functions below, return TRUE if the calculation is successful, FALSE if overflow occurs Return the calculated value in the pass by reference parameter provided */ Boolean calcFactorial (int n, int* nfact) { *nfact = 1; while(n > 0) { …

Member Avatar for murschech
0
402
Member Avatar for pulse

So, Google has come up with new Payment Methods - [quote]What forms of payment are available to me? [B]Local currency checks[/B]: Google will convert your earnings from US dollars into your local currency if this option is selected. Available to publishers in 43 countries, local currency checks are generally less …

Member Avatar for Dani
0
217
Member Avatar for server_crash

I'm trying to write this method that takes some parameters from my text editor, and encrypt the text. I got part of it written, but I'm stuck on the next bit. I got the part where you convert the "key", but I just can't figure out what to do next. …

Member Avatar for server_crash
0
318
Member Avatar for mattyice31

i am in school taking a machine language class and need helpt writing out the asm code for teh addcc instruction. i have a detailed source code complete taht just needs teh blanks to be filled in. .global main main: save %sp, -96, %sp ! %l1, %l2 will be set …

0
61
Member Avatar for F50

This seems like a simple task but the microsoft visual c++ 6.0 compiler is giving me a problem with this. Its complaining about the lines where i try to use a passed array such as "fin[i]=0". Its giving this error for the following code. "error C2109: subscript requires array or …

Member Avatar for Tight_Coder_Ex
0
182
Member Avatar for Almost a GURU

I am using VC++6.0 I am attempting to implement the TEA for a Oracle server. I am plannng to write the algorithm in C++(C), then add it to a shared library. I am new with C++ and I am having some difficlulty, mainly in two basic areas: 1. I want …

Member Avatar for Almost a GURU
0
85
Member Avatar for degoden

I need some help with the following problem. We've touched on scanning tree algorithms a little bit, but not to this extent. My textbook has been useless so far. Can somebody help me with the answers to this? Answer the following: template <typename T> int treeFunc(tnode<T> *t) { int n …

Member Avatar for Narue
0
102
Member Avatar for ilias
0
71
Member Avatar for higherGround574

I would appreciate any input anyone might have for the following problem: Describe the worst-case time complexity, measured in terms of comparisons, of the following searching algorithm: (x: increasing integer a1, a2, a3.... an) i=1//left end point j=n//right end point while (i<j) t=[ (i+j/3) ] begin if ( x < …

Member Avatar for higherGround574
0
270

The End.