Member Avatar

# Find minimum integer coefficients for a chemical reaction like # A * NaOH + B * H2SO4 -> C * Na2SO4 + D * H20 import sympy import re # match a single element and optional count, like Na2 ELEMENT_CLAUSE = re.compile("([A-Z][a-z]?)([0-9]*)") def parse_compound(compound): """ Given a chemical compound like Na2SO4, return a dict of element counts like {"Na":2, "S":1, "O":4} """ assert "(" not in compound, "This parser doesn't grok subclauses" return {el: (int(num) if num else 1) for el, num in ELEMENT_CLAUSE.findall(compound)} def main(): print("\nPlease enter left-hand list of compounds, separated by spaces:") lhs_strings = input().split() lhs_compounds …

Member Avatar
+0 forum 2
Member Avatar

Is there a way to solve for a system of multiple equations with multiple variables and variables on both sides in java Lets say im given three (or more) equations in an array list or array like so... 4A=1C 10A=2D 2B=2C+1D and im allowed to set one variable equal to 1 (lets say A) is there a java function or quick/simple aproach to get the values of each variable as whole numbers. (please help)

Member Avatar
+0 forum 3
Member Avatar

I tried alot to print this arrow with random generated values which are 0101 , every time it should be differnt, please help me out thanks :) ![Untitled1.png](/attachments/large/4/c843d1e3a2cf1464dc1f1eb7c0d4a68a.png)

Member Avatar
+0 forum 6
Member Avatar

How are you? Greetings to all of you. I have a task and that is to find the complexity of the counting algorithm sort line by line to finally find the T(n). The truth is that it has been quite a complicated subject for me, but I have been working on this so I would like to know if someone with knowledge of this can tell me if it is right or wrong. the pseudocode: ........................................cost..............repetitions for i = 1 to k do...............2.....................k+1 c[i] = 0 .......................... 1..................... k for j = 1 to n do ..............2 .....................n+1 c[A[j]] = …

Member Avatar
+0 forum 1
Member Avatar

analyze the problem. walkthrough the code. I would like to charge for this solution $10 to Renewal Computer Services, if I may post here (kids & teens free). when -50 is reached, doesn't blow past the maxvalue+1U and cause a cpu-hogging forever loop, it doesn't actually reach -50 equivalent (UINTMAX-49). #include <cstdint> #define ufordown0(var,maxvalue,step) for(uint64_t var=maxvalue; var>maxvalue; var-=step) /* Example: ufordown0(i,200U,50U) { } */

+0 forum 0
Member Avatar

I have tried to get the standard deviation, but it doesn't work. int[]scores = { 52, 69, 85, 98, 95, 76, 82, 83, 92, 87, 94, 68, 77, 45, 70, 71, 59, 60, 74, 84, 83, 73, 75, 78, 80, 92, 91, 97, 62, 84 }; void standardDeviation() { float average; for (int x=0; x<scores.length; x++) { float total = 0; for (int i=0; i<scores.length; i++) { total += scores[i]; } noLoop(); float stdDeviation=0; average=total/scores.length; float differences = (scores[x]-average); float squaredDifferences= differences*differences; float variance=squaredDifferences/scores.length; stdDeviation=+ sqrt(variance); textFont(createFont("consolas", 20)); text("Standard Deviation: "+ stdDeviation, 20, 170); println(stdDeviation); noLoop(); } }

Member Avatar
+0 forum 1
Member Avatar

I created a calculator only using the scripting commands in the video game Counter-Strike, bind (for input) echo (for output) and alias (for the logic). Bind is to connect keys to a command or string of specified commands, echo is to output text to the console, and alias is a command that allows you to create a new command out of a string of specified commands. Basically, I can do math without using math. This is pure connectionism, where there are no values, no logic operators and no measurements in the logic. It is purely making, breaking and using connections …

Member Avatar
+0 forum 1
Member Avatar

Design a function named max that accepts two integer values as arguments and returns the value that is the greater of the two. For example, if 7 and 12 are passed as arguments to the function, the function should return 12. Use the function in a program that prompts the user to enter two integer values. The program should display the value that is the greater of the two. NEED HELP WITH >>>>>>>>>>>>>>>>> variable lists, IPO Chart, pseudocode, Flowchart

Member Avatar
+0 forum 3
Member Avatar

Hey all, What’s up?? Recently I came across InterviewBit Academy Course. Link - [InterviewBit Academy](http://www.interviewbit.com/academy/) It's is a 6 Months immersive online program that helps you develop your tech skills and gets you your dream job at no upfront cost It comes with a promise of guaranteed salary in the range of $75K - $120K once we finish the course. This line caught my attention > "If you don’t get a job, you don’t need to pay a penny". > Plus, it seems they have a lot of positive reviews - https://www.quora.com/What-is-your-review-of-InterviewBit I’m aware of lambda school which also guarantees …

Member Avatar
+0 forum 7
Member Avatar

I have this Question , I want the answer and show me how to solve it Please : Analyze the running time of the following algorithm using Big-Oh notation maxerea =0; maxpt1 =maxpt2 = maxpt3 =0; for(i =1;i<=n;i++) for(j =i+1;j<=n;j++) for(k =j+1;k<=n;k++){ empty = True; for(l =1;l<=n;l++){ if((l != i) && (l != j) && (l != k)) if insideTriangle(i,j,k,l) then empty = False; } area = TriangleArea(i,j,k); if (area < maxarea) { maxarea =area; maxpt1 = i; maxpt2 = j; maxpt3 = k; } } print, maxpt1, maxpt2, maxpt3

Member Avatar
+0 forum 1
Member Avatar

Why Big-Oh is not a good scale for comparing algorithms?

Member Avatar
+0 forum 2
Member Avatar

I see this Question in a diploma in computer science Exam in Algorithm , and i need help to solve it : Algorithm A1 takes n^2 days to solve a problem of size n . Algorithm A2 takes 2^n seconds on the same problem . Detrmine how large of a problem instance is required before algirithm A1 becomes faster than algorithm A2 . How much time do the two aldorithms take on that instance ?

Member Avatar
+1 forum 3
Member Avatar

Can any one give me snippt code for single, double and single circular linked list.

Member Avatar
+0 forum 1
Member Avatar

I try to evaluate working time of Tjuring machine, but I really don't know how to do it. I try to evaluate working time of Turing machine. I understand, I have to calculate number of steps used in every stage. My problem is: how can I know, how many steps used in every stage, for example, n, n/2, n^2... Computational problem L: L(x)=1, if input date x is in the form y#z, where y and z are strings of the same length. The strings consist of the symbols a and b. This Tjuring machine works as follows: Repeats the sequence …

Member Avatar
+0 forum 1
Member Avatar

Need help modifying this code to add to my code. My code creates a grid but does not check if a word exists or not yet. Also, it should be user interface, user types in word, and computer outputs yes or no. // C++ program to check if the word // exists in the grid or not #include <bits/stdc++.h> using namespace std; #define r 4 #define c 5 // Function to check if a word exists in a grid // starting from the first match in the grid // level: index till which pattern is matched // x, y: current …

Member Avatar
+0 forum 2
Member Avatar

Hello. I have a question: I have a portable harddisc, with files on it. Now I want to encrypt a certain folder on it. It contains a couple of files which take some megs. What's the best way to do this? Thanks in advance, Leon

Member Avatar
+0 forum 3
Member Avatar

I couldn't install the tensorflow framework in my laptop.can anyone help me out in installing tensorflow for doing my project on deep learning techniques.

Member Avatar
+0 forum 1
Member Avatar

plz someone help me with this problem. i have uploaded the code file down Make a class fraction () with a numerator and a denominator. Create a constructor and overload some operators so that the code below can run on

Member Avatar
+0 forum 1
Member Avatar

Hello everyone. I have been trying to get desired output since last 4 days and so far very near to it. I am really stucked in the logic. Please help me or help me in writing proper logic. Open the attached zip file for whole eclipse project. No need to touch any file except **com.designimplementation.elevator.controllers.ElevatorController** So far I am able to get **Average cycles per customer trip: 42.35841100754549** But I must be **Average cycles per customer trip: 30** Please help me asap. Thank in advance.

Member Avatar
-4 forum 1
Member Avatar

I am trying to implement a MIPS code that preforms unsigned integer divide but i couldn't figure out how. if D == 0, report an error and terminate. Q = 0 # Q is the quotient, initialized to zero R = 0 # R is the remainder, also initialized to zero n = the number of bits in the numerator N # That is, the number 3710 is 1001012 has 6 bits. # Shift through the bits of N to find the # position of its most significant 1 bit. # Write a separate function to determine “n”. for i …

Member Avatar
+0 forum 1
Member Avatar

You know the Pareto Principle? The 80/20 rule? That 80% of the work gets done by 20% of the people? Or 80% of the money belongs to 20% of the people? And so on? Well it is 'recursive' inasmuch as it can be applied again to the 20% first recognised. i.e. if 20% do 80% of the work then 20% of the 20% do 80% of they work THEY do. And so on. While I can get my head around recursion generally and can fully comprehend the standard recursive algorithm for calculating factorial - I'm not smart enough to put …

Member Avatar
+1 forum 1
Member Avatar

Please i need your suggestions on how to design a system that will diagnose malaria or typhoid by accessing a number of symptoms.

Member Avatar
+0 forum 8
Member Avatar

I am trying to understand leader clustering algorithm and overlapping clustering algorithm , but not able to get proper documents and explanations. Can someone please help me understand these clustering algorithms that what are the key differences between both (leader clustering and overlapping clustering) algorithms, and if applicable, which algorithm provides the best result with large datasets.

Member Avatar
+0 forum 1
Member Avatar

How to solve monkey and banana problem using best-first search algorithm? Anyone having ideas? I know we have to choose a heuristic function 'h(n)' for performing distance related calculations. But can anyone elaborate this problem ? (algorithm and complexity analysis much appreciated)

Member Avatar
+0 forum 6
Member Avatar

Im not really familiar with this kind stuff I really need help with this: develop an algorithm pseudo-code that will accept the names of each sales staff members and their total sales for the month. The algorithm must calculate the commission at 4 % of their total sales amount. It should display only the name, total sales and commission of the member with the highest commission and the number of persons without commission.

Member Avatar
+0 forum 2
Member Avatar

I have an assignment and don't have any clue what software to use to solve it. It asked to make algorithm as I have to sort students GPA and the highest rank will get a scholarship.

Member Avatar
+0 forum 1
Member Avatar

Hi everyone! Please help me to find a thesis title that should be related in computer science about the theory. Your suggestion is very helpful for me since I will be graduating in senior highschool PS: any suggestions would do :)

Member Avatar
-2 forum 1
Member Avatar

please help me, create an algorithm that can be used to spell out a positive number worth less than 1,000,000 and create a c ++ program for the algorithm

Member Avatar
+0 forum 1
Member Avatar

i need help

Member Avatar
+0 forum 2
Member Avatar

Hi...! In Design of Algorithm. I think it is used to calculate the time complexity.... What is meant by STEP-COUNT METHOD? What is the procedure in that to calculate? I want brief explination. ....

Member Avatar
+1 forum 5

The End.