3,815 Topics
![]() | |
Hello Friends... I've written a code for Simulating Paging algorithm using LRU... The code is in the attached file. Now on windows... it is executing perfectly, giving the output i desire... but on Linux REGAL gnu compiler, it is giving me the error... Error file is attached... as error2.jpg SEGMENTATION … | |
I need help with following algorithm: Initaliaze a counter at 2; So long as the counter is less then or equal to number; if the counter divides the number evenly; //<<==problem display the counter; else add one to the counter; ------- so i just cant figure how to check: "if … | |
[COLOR=#000000]I want to writ a java that would read from a file called memory.txt a list of partition sizes of K’s, one partition per line. It will then read from a file called processes.txt a list of processes requesting these partitions. Each line simple contain a list of sizes in … | |
Hi, I am going to write an exam I found a model question. could u pls solve this question. An array named 'DATE_ARRAY' with n elements present in the memory. Each element in the array is a structure representing the 'Date' information and its type defination is shown below. Type … | |
I have a assignment with these requirements: Please begin stage 1 by writing a program that creates an output file. Name the file using your userid followed by .dat. For example, I would call my file “angelesm.dat”. The file should contain all of the multiples of 5 from 0 to … | |
Hello everyone :) I have a problem with Kraskal's algorithm. :sad: How it is possible to choose the node I want to start with to build minimmum spanning tree? Thank you for ansvering :) [code=c] //implemented using sets concept #include<iostream.h> class kruskal { private: int n; int graph[10][10]; int tree[10][10]; … | |
plz help me to simulate the booth's algorithm for multiplication of 2 integers using 8085 (not 8086) assembly !! | |
Hi all, I just joined the post. Iam new to C programming. I have a question regarding a problem i found in some book. The problem is i have a input file with student ID, 5 program scores, midterm and final score. i have to check for wrong input of … | |
Do you know where can I find a Class to operate with matrixes with a fast algorithm? (the class should also have the inverse method) thanks in advance | |
I have this algorithm that is really giving e a problem can someone please help me. void Transpose (int a[][SIZE], int n) } for(int=1;i<n;i++) for(int j=i+1; j<=n; j++) { int t=a[i][j]; a[i][j]=a[j][i]; a[j][i]=t } } I need to obtain the time complexity of the above matrix transpose algorithm using program … | |
I am writing a simple program.. enter first and last name and a search is performed.. and their phone number (if found) is returned. I have used vector class iterators before a couple of times.. but devcpp does not seem to like this code.. and stops compilation somewhere inside of … ![]() | |
I have an algorithm problem with recursion: i have a route from A to D and it looks like this [CODE] [A, B, C, D][/CODE] the alphabet in the above list is an object of a class, lets call that class Nodes each of this Nodes object they have some … ![]() | |
i want to calculate the complexity of the following code snippet [code] for(int k=0;k<n; ++k) for(int j=0; j<k; ++j) for(int i=0; i<j; ++i) cout<< "Hello World" <<endl; [/code] here! i got the hint! that summation of natural numbers series would be used if its correct why ? bit confused:sad: | |
i need a program urgently for round robin schedulng algorithm using circular linked list implementation.. please send a program using c++... post the prg to my mail id.. << moderator edit: removed email address >> | |
There is an algorithm in the software program that other team handed to me on linux. Given a set of requirements, our task is to create a test script/driver to verify that algorithm using a separate data file and spit out the result on the output file. The concept is … | |
Hi everyone, Can You please help me with the [B]Round-Robin scheduler [/B] [B]algorithm (C language)[/B] My program will use as a Datastructure a doubly linked list to hold processes( I will represent my process as: Id(char*), Priority(int) ( a process with priority n will have n CPU time slots) and … | |
hi, can someone help me with writing down a recursive algorithm for traversing a binary tree in reverse-postorder that also returns the rank of each node? So far i have (and i know thatit isnt much but this problem giving me issues). [code] postorder: save current posistion if(lchild) move to … | |
Hi everyone, I have a simple setback in my program. I'm not the best way to go about doing this. I'm trying to do it in the simplest way possible. I have an input file that looks like this 2.5 600 -2 10 20 30 I want to sort each … | |
Hi can anny one help me out optimizing the follwing issue: [COLOR=navy][COLOR=navy]A C++ class has the following member:[/COLOR][/COLOR] [COLOR=navy][COLOR=navy] int status_[75];[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]During performance analysis it was found out[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]that the class (its object) was performing unsatisfactorily[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]making it a necessary candidate for optimization.[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]The following additional information was also found … | |
hi, i have a project related to voice transmission and i need and algorithm o code about voice compression thanx | |
I'm currently working on a homework problem in simulating a vehicle monitoring system. The problem is with my loop to start the problem when I want to end the program all the user should do is press two and the program will break to the very end. However this does … | |
i'm very much a newbie, so pardon me if i am breaking programmer ettiquette, but could someone debug this, please? i could use a lift after 8+ hours workin on this... this is player.h [CODE]#ifndef PLAYER_H #define PLAYER_H using namespace std; class player { private: char* name; int bankroll = … ![]() | |
[COLOR=black]Given a list of [/COLOR][COLOR=black]N [/COLOR][COLOR=black]integers, the 3-sum problem is to determine whether there exists 3 integers in the list (not necessarily distinct) such that [/COLOR][COLOR=black]x + y + z = 0[/COLOR][COLOR=black]. Suppose that you are executing the brute force algorithm below on a computer that executes 1 billion operations … | |
Hi guys, back again...You guys were very helpful before and I ended up approaching it a totally different way. I used the mathematical way which is hard to explain but well...it worked so thanks. Now I am having a problem constructing a program that prompts the user for a name … | |
I am doing a mazetraversal program that inputs a .dat text file. Im having trouble taking in account of the whitespace. Here is my code and were the ?????? is where it needs to go. I think its just a small "if" statement taking it in account. [CODE]#include <iostream> #include … | |
this is a program that i have to write. followed by the code i already written. Design Specification You are to write a program called “StockAnalyser”. Your program will read a text file that contains historical price of a stock. The program will allow users to query the stock price … | |
I am trying to do a homework problem, however, I do not understand the question. As the course just started, we are using pseudo-code. Here's the question: Describe an algorithm for a computation that takes two inputs, a list of numbers and an integer n and returns the nth smallest … | |
Hi can anyone help me in doing the following Given n Boolean variables x1,x2,…..xn, we wish to print all possible combinations of truth values they can assume. For instance, if n=2, there are four possibilities : true, true; false, false; false, true; true, false;:-| | |
Hi guys...Im new here and just registered a few minutes ago. I am a sophmore in high school and this is my first year of java. I have a program that I have to do for homework and I don't even know where to start. We have just begun learning … ![]() | |
My instructor has given us an assignment which *should* be relatively easy except for the fact that the instructor's instructions are not clear, sometimes ungrammatical, and she refuses to answer any questions or fix any mistakes. Here are the instructions for the assignment: "Let A[1..n] be of n elements. Let … | |
Hope everyone's kind to a newbie :) I kind of "discovered" (if that's what you call it) this simple quicksort variant just today. I was wondering if anyone had seen it before. I Googled around a bit but no one seems to have described it before. Hmm. It's based on … | |
I've encountered the following problem: Our program has two parts - the algorithm which is written in python (with numeric), and the GUI written in java. We want them to be able to work together - that means that the java part could ask the python for a calculation and … | |
hai..can anyone help me on this task...i might need some sample on doing it.TQ [B][U][COLOR=#000000]Tasks:[/COLOR][/U][/B] [COLOR=#000000]1 You are expected to write a program that simulates CPU scheduling algorithms (RR, SJF, and Priority). [/COLOR] [COLOR=#000000]2 The program will request the user to set the time slice to be used for RR … | |
I have an assignment that asks me to explain the "order of complexity" of an algorithm. Can anyone explain what that question means? Does that mean what happens first and so on? Thanks. | |
actually i dont have complete concept about bigO notation that usually used to find time complexity my question is in bigO notation why we ignore constant for example f=100n we say that our algorithm has order of n time comlexity or order | |
Hello everyone, I am trying to get an XTEA algorithm to work. I read the key from another process of which I'm sure it has a valid key at a specific location in memory. My encryption algorithm seemed to work, but when I tested it by making a buffer, encrypting … | |
Hi guys I need your help witb one of my tutorials here, I have a question which says: Let A and B be two sorted arrays of n elements each.We can easily find the kth smallest element in A in O(1) time by just outputting A[k].Similarly we can easily find … | |
Hi, I need to implement a kind of real-time morlet wavelet transform for 200-samples of signal in C++. I have the code ready, which does the covolution of incoming signal and complex morlet wavelet and then take the sqare norm of the covolution result to get the energy of signal … | |
hi all.. can anyone give me the algorithm for simple and deficit round robin.. pls.... :-| i'm doing a research on transferring video over bluetooth.. | |
I am a new member to tis group, anyone familiar with round robin algorithm, pls send me some c++ codings on round robin to <<email snipped>> | |
Hi All, I have an algorithm on the server. I want the algortihm to perform calculations based upon the data which is stored from a database to nested lists before the algorithm is run. Is there anyway of keeping the program running without any need of retrieving the data from … | |
So I have this sorting program due and I did it all but there's something crazy happening when I run the program. If I enter a value that's greater than 6400 for the size of my array, the program crashes when it tries to sort it out. Also, when i … | |
Having trouble understanding O-notation. This is the question: 10. The approximate number of iterations of an algorithm with data size N is determined to be: 1 + 2 + 3 + ... + N a. Write a table that shows N and the number of iterations for the first 10 … | |
hai , i am chandu. i have some doubts in datastructures.can anyone help me to solve them 1) what datastructure (stack,queue.list......) is used for NOTEPAD ,(i want the best datastructure) and why? 2)what is the best datastructure used for MICROSOFTWORD and why? 3)how can we delete duplicate elements in an … | |
HI I am new to php I would like to ask how I can insert a C source code into a php file please help I have a C scheduling algorithm that I'd like to use for my site that I am developing using php/mysql but I don't know how. … ![]() | |
HI I am new to php I would like to ask how I can insert a C source code into a php file please help I have a C scheduling algorithm that I'd like to use for my site that I am developing using php/mysql but I don't know how. … | |
I'm having trouble getting this source code to compile. Could you guys please tell me where I'm going wrong? The source code is compiled in LC3EDIT and then ran in LC3simulator. Here is the source code and routines. I've changed everything that's suppose to be changed and the labels, etc. … | |
if i implement same algorithm iteratively and also with recusrion ...than which of the above methods is better in implementing ..... and what are the advantages of recursion over iterative methods ?? | |
I've just tried to code the Binder2nd, almost same as standard code provided in functional...... please point out the mistakes........ and suggest me guidelines to write effective code.......... [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <vector>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <functional>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <algorithm>[/COLOR] [COLOR=#0000ff] using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#0000ff] template[/COLOR][COLOR=#000000] <[/COLOR][COLOR=#0000ff]class[/COLOR][COLOR=#000000] _Fn> [/COLOR] [COLOR=#0000ff]class[/COLOR][COLOR=#000000] Binder2: [/COLOR][COLOR=#0000ff]public[/COLOR][COLOR=#000000] … |
The End.