3,815 Topics

Member Avatar for
Member Avatar for Rashmi_1

prog6.h #include "340.h" #include "binTree.h" #ifndef H_PROG6 #define H_PROG6 const vector < int > A{ 1, -2, 3, -4, 5, -6, 7, -8, 9, -10, 11, -12, 13, -14, 15 }; const vector < float > B{ 0.5, 1.75, -3, 4.25, 5.50, -6.75, 8, 9.25, -10.5 }; const vector < …

Member Avatar for Banfa
0
347
Member Avatar for DS9596

Can you tell me what's wrong with it because it's not running on visual studio and I need it right now??? #include <iostream> #include<vector> #include<algorithm> #include<limits> #include<fstream> #include<string> using namespace std; class PayRoll { private: vector<int> salaries; public: PayRoll(); bool searchSalary(int salary); void generateStats(); void printSalaries(); }; PayRoll::PayRoll() { ifstream …

Member Avatar for cgeier
0
183
Member Avatar for tony75

Hi I need you recommendation to know about which crypto algorithm is good for protecting files which is stored in the DropBox?

Member Avatar for tony75
0
108
Member Avatar for SK1994

I have made a Biginteger class that performs multiplication operation according to Karatsuba's algorithm. But it seems that the code is not working perfectly.In the class I have made a function named karatsuba(BigInteger a1, BigInteger b1)that performs the Multilplication operation. There might be problems in this function as I have …

Member Avatar for tinstaafl
0
346
Member Avatar for cannon_1

I want to implement an algorithm in c++ using two concurrent infinite loop: the first infinite loop produces the upper bound on each iteration and the other infinite loop produces lower bound on each iteration. Both loops would terminate only when the the upper bound and lower bound meets. What's …

Member Avatar for cannon_1
0
273
Member Avatar for Vivek_12

#include <iostream> #include <string> /*i want to compare string and char as char is a subset of string*/ string S [50]; //algorithm is somewhat like: i=0; while(i<23){ char c = (char) i; S[i] = c; } for(i=23;i<50;i++){ S[i]="hello"; } //i want to check how many hello are there i=0; x=0; …

Member Avatar for Vivek_12
0
465
Member Avatar for Shibbir Khan

I have this function and everything works until a and b both equal 1. When that happens the carry bit is going to 2 when its supposed to be only 0 or 1. Is my algorithm wrong for the carry bit carry_bits |= ((a & mask) & (b & mask)) …

Member Avatar for Moschops
0
206
Member Avatar for cse.avinash

Hello every one Can I have a better algorithm to find the nth prime number, where 1<= n <=5000000. for e.g., 1st prime number is 2. 10th prime number is 29. 100th prime number is 541. 1000th prime number is 7919. 10000th prime number is 104729. 100000th prime number is …

Member Avatar for vantrendin
1
6K
Member Avatar for Zaprzap

I have been working through the Accelerated C++ book. In the fifth chapter I am beginning to construct my own programs without the aid of step by step instructions from the book. There is an exercise that requests for me to write a program that produces a permuted index. The …

Member Avatar for NathanOliver
0
254
Member Avatar for Parth_1

hello all, As i am developing a final year project of my curriculum.\ I need some guidance for my project. My project is "**Face detection from digital image**". Also i want to develop this project in Java Programming language. As i am new to image processing domain, i want to …

Member Avatar for Parth_1
-1
127
Member Avatar for piers

Hi, I have been creating a round robin. This is similar idea to speed dating except everyone has to talk to everyone. Whilst I have been able to create this, there is a lot of repetition in my code and I wondering if any of you have recommendations for removing …

Member Avatar for piers
0
3K
Member Avatar for öahmut0047

(Practice) Determine a step-by-step procedure (list the steps) for each of the following tasks: Note: There’s no single correct answer for each task. This exercise is designed to give you practice in converting heuristic commands into equivalent algorithms and understanding the differences between the thought processes involved. 3The source code …

Member Avatar for NathanOliver
0
109
Member Avatar for manaog.aaronvici.7

2. (Practice) Determine a step-by-step procedure (list the steps) for each of the following tasks: Note: There’s no single correct answer for each task. This exercise is designed to give you practice in converting heuristic commands into equivalent algorithms and understanding the differences between the thought processes involved. 3The source …

Member Avatar for mattster
-1
351
Member Avatar for BibhutiAlmighty

Can anyone please help me to add number of strings to a hash table. Actually i am trying to make a "hangman game". I want to store the answers in a hash table but there's something wrong i my code <sorry!! I can't provide the code>. Please suggest me a …

Member Avatar for chriswelborn
0
222
Member Avatar for Curious Gorge

So I'm taking a Public Speaking course as part of my CS program, at a community college before I head off to a large university in a year to major in Computer Science. For the first graded speech of the class I must make a speech about a "process". Since …

Member Avatar for Curious Gorge
0
243
Member Avatar for borchu

Hi, I am trying to find 2nd largest number that given input of numbers. The question is actually consider that you enter 5 number : 60, 70, 30, 40, 55 randomly -the order does not matter- my function should find 2nd largest number and return it. I am trying but …

Member Avatar for Magnificant
0
3K
Member Avatar for Kelly Burby

It's been a while but Panda 4.0 can be said as the newer version of algorithm update by the Google. Several webmaster across the world is been effected some in a good way and some in a bad way. So, my question how does it affects to your site in …

Member Avatar for frasermeridies
0
284
Member Avatar for andrew mendonca

Define a function string sort(string s) that returns a string with the same characters as s, but arranged in ascending order, according to ascii value . For example sort("hello") will return the string "ehllo". Notice that the function returns a different string from the original argument, since s is not …

Member Avatar for Moschops
0
190
Member Avatar for nissy
Member Avatar for task.incomplete
1
411
Member Avatar for spawn2004

Hi , can you please help me with an advice. I have a problem with treeview. I want to show in a treeview folders but just some of them. I have several layers of folders. For example Root | =subfolder 1 | = subsubfolder1 | =subsubsubFolder1 | =subsubsubFolder2 | = …

0
319
Member Avatar for Ivzirnalsradeys

a) Program code is often written using procedures. Give THREE advantages of using procedures in programming. b) Write an algorithm (pseudocode or flowchart) for a procedure to validate the input of a date in February in any year. The date should be input in the form ddmmyyyy e.g. 07021998 You …

Member Avatar for rubberman
-2
236
Member Avatar for airhalynn101

Are there specific algorithms that target the process of statistical machine translation? I just need to work on an enhancement of a specific algorithm as part of my studies, and because I'm finding it hard to look for one in the net, I'm hoping that you guys here can give …

0
89
Member Avatar for Cypher Yaw

Im a new student in information technology. How do I write algorithm to calculate or solve simultaneous equation . Thanks

Member Avatar for Hiroshe
0
171
Member Avatar for JohnIV

Now I am trying to include apriori algorithm in my website -shopping cart - and I choose php array and mysql to do that . I think my code gonna be complicated and not as fast as I wish especially in real time , Is there any suggestion or open …

Member Avatar for veedeoo
0
165
Member Avatar for somyms

i want to do privacy preserving datamining using association rule hiding algorithm as my thesis . i know its a challenging area..how i need to start for this? ..please help me..you can give suggestion and also better idea about this topic.

Member Avatar for somyms
0
176
Member Avatar for Joemeister

Hello all, I am getting 3 errors when I try to use stacks when I want to evaluate a postfix expression. I am not very experienced with the usage of stacks so please be patient with me. Here is my code: //The postfix parameter is a postfix string that was …

Member Avatar for iamthwee
0
331
Member Avatar for Slavi

Hey guys, I have some questions about the structure of KSA. The way that I find it being explained is as follows: The first step of this algorithm consist in initializing the S table with the identity permutation: the values in the array are equal to their index. Once the …

Member Avatar for Slavi
0
806
Member Avatar for Kris_3

Hi guys so I am still learning and there might be an easier way to do thing than how i do them but still i need some help. So I was thinking of making a program in which it asks you a question , lets say Yes/No question and you …

Member Avatar for Kris_3
0
134
Member Avatar for nathan.pavlovsky

Hello programmers! I am working on a program that checks if a user's input is a palindrome (in this case, the input is a string). I am using a custom class template "stack", that is a constrained version of my custom class "List", which is a linked list class template. …

Member Avatar for nathan.pavlovsky
0
418
Member Avatar for simbamadah

An algorithm takes 1 second to execute for an input size of 10. What will the largest size of input be that can be executed in 25 seconds if the running time is quadratic (N2)? Can i also have links to literature that can give me clear examples or explanations, …

Member Avatar for mike_2000_17
0
98
Member Avatar for Benny_1

I'm new in java, so I'm not very good at it yet and my teacher has stumped me. We are supposed to make a bot for a game called snacktime, which is usually user controlled. # About Snacktime: # * There are a maximum of 16 snacks layed out randomly …

Member Avatar for Benny_1
0
288
Member Avatar for thegreymatter

Hi recently while trying to solve a core Java algorithm question I got trapped into a problem. Let me explain the puzzle. > There is a series of numbers. where difference between any consecutive > numbers is either a or b. The 1st number of the series is 0. Our …

Member Avatar for JeffGrigg
1
1K
Member Avatar for alysha.recore

Hello everyone! I am in need of some help with a homework assignment. It's basically creating a file indexer using C++. I have 2 separate files that I need to read in: one is a text document and the other is a Skip words key. I am incredibly confused about …

Member Avatar for NathanOliver
0
169
Member Avatar for can-mohan

Guys, In below code they are couple of issues. (1) I am not able to read first key and value pair record from snmp.json file in my map, it just start reading after first record. (2) After reading the value from file in current implementation it is not reading the …

Member Avatar for NathanOliver
0
231
Member Avatar for abb13e

I dont clearly understand bool functions. this lends problems to my current assignment in class where i have to write a program that involves a bool function that tests for letters in a string that the user inputs. Can anyone offer help to me? the whole code is slightly confusing …

Member Avatar for abb13e
0
276
Member Avatar for Asma_2

i need your help to find c++ code for Clustering algorithm for energy efficiency in wireless sensor networks

Member Avatar for L7Sqr
0
277
Member Avatar for iConqueror
Member Avatar for arose523

This ione class that I am not doing so great in and have been very confused from day 1 any help would be greatly appreciated, as I am at risk of failure??!?!?! 1 Canadian Dollar 1 US Dollar = 1.468 Canadian Dollar 2 Mexican Peso 1 US Dollar = 9.5085 …

Member Avatar for rubberman
0
204
Member Avatar for omthavertch
Member Avatar for Kev756

Type rounds_key 'Storage Container raundnyh keys key (255) As Byte End Type Global data_ () As Byte 'Declare global byte array Global key_ () As Byte 'Declare global byte array Global data_size_block As Long 'Declare global variable 4 bytes Global su_box () As Byte 'Declare global byte array Global …

Member Avatar for Stuugie
0
245
Member Avatar for screenedcreamy

I've been programming in java for almost 5 years now. I'm self-taught, so while I know how to program, I don't know some of the more formal aspects of computer science. So if i were to brush up my knowlegde on algorithms and data structures using java which books can …

Member Avatar for screenedcreamy
0
235
Member Avatar for Excizted

Hello, I hope someone is more knowledgeable in Java than me while still knowing PHP! The following Java code makes a hash from a string, and I need a PHP equivalent that makes the exact same hashes. Simply md5() does not do the trick, and I looked at some PHP …

Member Avatar for Excizted
0
1K
Member Avatar for philosopher779

This is my first post on Daniweb so forgive me if I make any mistakes. Introduction: I recently graduated from Dev Bootcamp. It is an accelerated 9-12 week camp which teaches Ruby and Rails. A traditional computer science degree will teach students algorithms, data structures etc before moving onto higher …

Member Avatar for Dani
1
385
Member Avatar for Sarkurd

Hi i'm following a book but i don't understand `std::string::size_type` and some other data types specially `typedef` i see programmers use them too much. typedef int grades[5]; grades studenA[5], studentB[5]; and why just not use `int` instead of `size_type` while the result is same. #include <iostream> #include <string> #include <algorithm> …

Member Avatar for Sarkurd
0
762
Member Avatar for iConqueror

Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster: #include <algorithm> #include <ctime> #include <iostream> int main() { // Generate data const unsigned arraySize = 32768; int data[arraySize]; for (unsigned c = 0; …

Member Avatar for ~s.o.s~
1
371
Member Avatar for castajiz_2

I ve been searching for various algorithms for the past few days and I came accross this one. Is this the right solution to it (Greedy algorithm), or am i missing something. static void Main(string[] args) { int[] array = new int[71]{ 72, 79, 84, 46, 14, 4, 62, 88, …

Member Avatar for castajiz_2
0
788
Member Avatar for Dani

Google already talks about using ATOM activitystrea.ms for the social hub in Google Analytics. Does Google also use activitystrea.ms in its search algorithm? How beneficial might it be? I know they put a lot of emphasis on microdata as of late but this is a different beast entirely.

Member Avatar for Dani
1
188
Member Avatar for Mushy-pea

Hi. I've developed a bit of an interest in encryption as well as programming in Haskell since I last used this forum. So I decided to build a symmetric block cipher and test its properties to gain more of an understanding of such things. This is for research purposes as …

Member Avatar for Mushy-pea
1
304
Member Avatar for Goldfinch

Hi, I hope this is the right place to post this. I am researching the possibility of registering a new domain name. I haven't decided what the correct name is yet but I want to figure out what names are available and would like to figure out a way to …

Member Avatar for Maywyn
0
817
Member Avatar for toring

Hi,I hope someone will help me on this,does anyone here knows algorithm BST infix to postfix,can you help me please. I am not good in java and i am still getting know with this. Thank you in advance.

Member Avatar for jwenting
-1
442

The End.