3,815 Topics

Member Avatar for
Member Avatar for siddhiinfomedia

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 …

Member Avatar for Ancient Dragon
0
115
Member Avatar for snedan

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 …

Member Avatar for WolfPack
0
104
Member Avatar for Edwin Thabo

[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 …

Member Avatar for Edwin Thabo
0
257
Member Avatar for pointers

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 …

Member Avatar for Bench
0
109
Member Avatar for upside10

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 …

Member Avatar for upside10
0
160
Member Avatar for alias47

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]; …

Member Avatar for ~s.o.s~
0
117
Member Avatar for dhruvisinha

hi, i need the program code and algorithm to find the sum of the sin and cos series, print 1/232/34543/4567654 in the form of a triangle. Please mail me the solution on <removed email as per forum rules> thanks so much.

Member Avatar for andor
0
97
Member Avatar for mahul000

plz help me to simulate the booth's algorithm for multiplication of 2 integers using 8085 (not 8086) assembly !!

0
58
Member Avatar for lavicool

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 …

Member Avatar for lavicool
0
122
Member Avatar for gampalu

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

Member Avatar for Ancient Dragon
0
61
Member Avatar for upside10

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 …

Member Avatar for upside10
0
128
Member Avatar for Clinton Portis

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 …

Member Avatar for iamthwee
0
127
Member Avatar for fdrage

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 …

Member Avatar for iamthwee
0
121
Member Avatar for Laiq Ahmed

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:

Member Avatar for Infarction
0
96
Member Avatar for dhaya

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 >>

Member Avatar for Paul.Esson
0
1K
Member Avatar for usr1971ca

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 …

Member Avatar for WaltP
0
129
Member Avatar for meriem

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 …

Member Avatar for ~s.o.s~
1
353
Member Avatar for bajanstar

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 …

Member Avatar for Rashakil Fol
1
96
Member Avatar for nanodano

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 …

Member Avatar for WolfPack
0
101
Member Avatar for Ajay Raj

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 …

Member Avatar for andor
0
187
Member Avatar for mhm_ra

hi, i have a project related to voice transmission and i need and algorithm o code about voice compression thanx

0
57
Member Avatar for mcnasa01

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 …

Member Avatar for b4codes
0
136
Member Avatar for hoosier23

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 = …

Member Avatar for iamthwee
1
171
Member Avatar for imtiazm_71267

[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 …

Member Avatar for Rashakil Fol
0
59
Member Avatar for Klitzy

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 …

Member Avatar for tknows
0
130
Member Avatar for bg123

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 …

Member Avatar for Lerner
1
129
Member Avatar for beginerprograme

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 …

Member Avatar for ~s.o.s~
1
133
Member Avatar for desi

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 …

Member Avatar for FC Jamison
0
31
Member Avatar for Karthi Msc

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;:-|

Member Avatar for Salem
1
165
Member Avatar for Klitzy

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 …

Member Avatar for iamthwee
0
150
Member Avatar for madcapjack

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 …

Member Avatar for Rashakil Fol
0
67
Member Avatar for Jafet

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 …

Member Avatar for Infarction
0
173
Member Avatar for bennyzil

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 …

Member Avatar for mostafadotnet
0
157
Member Avatar for ank_nute83

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 …

0
91
Member Avatar for puppy

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.

Member Avatar for Micko
1
100
Member Avatar for muhammad amir

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

Member Avatar for Grunt
1
151
Member Avatar for Eddy Dean

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 …

Member Avatar for Eddy Dean
0
1K
Member Avatar for gumedesv

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 …

Member Avatar for gumedesv
0
150
Member Avatar for yuelabtina

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 …

Member Avatar for yuelabtina
0
332
Member Avatar for inazdaud

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..

Member Avatar for Grunt
0
68
Member Avatar for s_nagula

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>>

Member Avatar for Ancient Dragon
-1
133
Member Avatar for rockzZ25

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 …

Member Avatar for rockzZ25
0
121
Member Avatar for djkross

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 …

Member Avatar for djkross
0
76
Member Avatar for skeet123

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 …

Member Avatar for WolfPack
0
116
Member Avatar for balachandu

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 …

Member Avatar for dilip.mathews
0
148
Member Avatar for angelv

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. …

Member Avatar for iamthwee
0
178
Member Avatar for angelv

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. …

Member Avatar for 'Stein
0
63
Member Avatar for ae4jm

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. …

Member Avatar for ae4jm
0
1K
Member Avatar for joshilay

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 ??

Member Avatar for joshilay
0
154
Member Avatar for Laiq Ahmed

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] …

Member Avatar for GloriousEremite
0
143

The End.