3,815 Topics
![]() | |
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 < … | |
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 … | |
Hi I need you recommendation to know about which crypto algorithm is good for protecting files which is stored in the DropBox? | |
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 … | |
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 … | |
#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; … | |
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)) … | |
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 … | |
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 … | |
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 … | |
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 … | |
(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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
What are the current algorithm announced by Google??... What are the major activites of them?? | |
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 | = … | |
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 … | |
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 … | |
Im a new student in information technology. How do I write algorithm to calculate or solve simultaneous equation . Thanks | |
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 … | |
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. | |
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 … ![]() | |
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 … | |
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 … | |
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. … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
i need your help to find c++ code for Clustering algorithm for energy efficiency in wireless sensor networks | |
Is it possible to create an encryption algorith using C#? | |
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 … | |
what algorithm yahoo using for the search the keywords | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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; … | |
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, … | |
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. | |
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 … | |
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 … | |
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. |
The End.