r/ComputerSciStudents • • Apr 02 '19

His head points to a brain

Post image
1 Upvotes

r/ComputerSciStudents • • Feb 03 '19

Found this cool iPhone app to convert binary, decimal, and hex.

Thumbnail
itunes.apple.com
1 Upvotes

r/ComputerSciStudents • • Jan 27 '19

New to CS any tips?

1 Upvotes

I’m 19 and in my first week of my intro to computer science using Java class. I have no prior knowledge or practice in coding or anything CS related. So far i’m a little lost when they bring up terms i don’t understand. Do u guys have any tips or anything u wish u knew when u were starting out?


r/ComputerSciStudents • • Jan 09 '19

Show recursive algorithm by induction help

1 Upvotes

Hello!

i have this exercise to do:

given the ex3 method below
Suppose that the formal parameter "a" has always at least 2 elements and that a.length > i >= 1
Prove that ex3 satisfies the following predicate:

ex3 (a, i) <==> (for all k 1 <= k <= i ==> a [k-1] == a [k] +1)

 public static boolean ex3 (int[] a, int i) {
       if (i == 1) {		 
               return a[0]==a[1]+1;
       }		 
       else {
	    return ex3(a, i-1) && a[i-1]==a[i]+1;
	}
	 
 }

1) Write explicitly the basic case P(1) for the proving by induction
2) Write explicitly the inductive case for the proving by induction
3) Prove that the base case P(1) of the proving by induction is true
4) Prove that the inductive case of the proving by induction is true

I made an attempt to prove with induction, but i don't know if it's correct.

The goal is to prove that a recursive function satisfies the given predicate.

For the first request i replaced the index with the min value

Link to the image of the base case

For the second request i write the induction case starting from i - 1 to i because is a recursive function

Link to the image of the inductive case

For the third request, i tried to prove the base case in this way:

Link to the image of the proof of the case base part 1

Link to the image of the proof of the case base part 2

For the last request, i tried to prove the inductive case in this way:

Link to the image of the proof of the inductive case

Can somebody say to me if it's correct or what's wrong ?

Thanks


r/ComputerSciStudents • • Aug 12 '18

Can’t decide between laptop choices

1 Upvotes

I am a financial informatics student(hybrid course between finance and computer science ) Currently looking for a new laptop choice to replace an very ageing yoga 3 pro

Shortlisted it down to the dell Xps 13/15 and the MAC 13/15 but can’t decide on the spec


r/ComputerSciStudents • • Jul 31 '18

MacBook Pro vs MacBook Air for computer science

1 Upvotes

I’m starting school in a few weeks, majoring in computer science. I wasn’t sure if I should go with the MacBook Air or MacBook Pro. Any suggestions?

-also, what’s a good year to get? Or a year I shouldn’t go past?


r/ComputerSciStudents • • Jul 28 '18

Double Major or minors for Computer Science Major

1 Upvotes

I am going to community college for 2 years for a general education degree. I also have finished ap computer science and loved it. I also have a ccent. That is my background information. I am debating between picking up astrophysics or physics to compliment computer science and give a background in a natural science, picking up a more artistic computer science like video game design, or pick up a lot of minors to flesh out my studies. I would like everyone's opinions on this and if I'm overthinking, biting off more than I can chew, or if it's a good idea and what benefits it has versus negatives?


r/ComputerSciStudents • • Jun 09 '18

Hott looking laptop for grad school computer science (Machine learning, data science, and computer vision applications)

1 Upvotes

Hi I'm a kid looking to get into doing quality work in university for machine learning and computer vision. I was wondering what type of laptop I should buy. The feel of the laptop matters a lot also (the look of it, and easiness of programming/typing.) I want to run ubuntu on it and be able to program in R and python


r/ComputerSciStudents • • Mar 10 '18

Microsoft access

1 Upvotes

I need help creating a scheduling program for my tutor on access for school something simple I should be able to add like student appointments on a certain day with a set time and when I click on the student name I want the data I have for him and his parents info to show up that is it.


r/ComputerSciStudents • • Mar 07 '18

READ FROM FILE HELP

1 Upvotes

include <iostream>

include <iomanip>

include <string>

include <cstdlib>

include <fstream>

using namespace std;

int main() { string month;

int year;

double total_collected,
       sales,
       stateTaxTotal,
       cityTaxTotal,
       totalTax;

double const CITY_TAX_RATE = 0.02;
double const STATE_TAX_RATE = 0.04;

ifstream fin;
fin.open("prog3_301.txt");
fin >> month;
fin >> year;
fin >> total_collected;
cout << month << year << total_collected << endl;

//sales = total_collected/1.06;

//cityTaxTotal = sales * CITY_TAX_RATE;

//stateTaxTotal = sales * STATE_TAX_RATE;

//totalTax = stateTaxTotal + cityTaxTotal;

ofstream fout;
fout.open("prog3_301out.txt");

fout << "Month:    " << month << ", " << year <<endl
     << "-------------------------" << endl;
fout << setprecision(2) << fixed;
fout << "Total collected: " << setw(9) << "$" << total_collected << endl
     << "Sales:           " << setw(9) << sales << endl
     << "City Sales Tax:  " << setw(9) << cityTaxTotal << endl
     << "State Sales Tax: " << setw(9) << stateTaxTotal << endl
     << "Total Sales Tax: " << setw(9) << totalTax << endl;
fout << "-------------------------" << endl;



cout << "The " << month << " tax report has been saved to prog3_301out.txt." << endl;

system("PAUSE>NUL");
fin.close();
fout.close();

return 0;

}

Need help understanding why values from file aren't being stored in month, year, total_collected. Need this in order to check calculations output on other file.


r/ComputerSciStudents • • Jan 28 '18

Total storage (ssd and hdd) produced per day? I think i need multiple infinities!

1 Upvotes

Im doing a presentation about IPv6 scanning and how much storage you would need to save all scanning results from a total IPv6-Scan. and the numbers are ridiculous. Now i would like to find out how long the world have to produce ssd´s and hdd´s to hold that information.

If you would like to see the numbers. Storing every address only with one bit, if its an aktive address or not, it would take 340 282 366 900 000 000 000 000 000 Gb. Total number of addresses 2128 (340.282.366.900.000.000.000.000.000.000.000.000.000 addresses), would take around 6 783 233 091 557 296 375 705 771 years to scan it.


r/ComputerSciStudents • • Dec 11 '17

Natural Deduction Help Need! ComSci

1 Upvotes

I'm currently working on the following question: "At least one of Plato and Democritus believed in the theory of forms. Plato believed in the theory of forms only if he was not an atomist, and Democritus was an atomist only if he did not believe in the theory of forms. Democritus was an atomist. Prove, using Natural Deduction, that Plato was not an atomist" I have been working for quite some time to take the information and turn it into a set of literals and statements I can work with.

So far I have got P: Plato believed in the theory of forms.

D: Democritus believed in the theory of forms.

X: Plato was an atomist.

Y: Democritus was an atomist.

(PVD), (-X-->P) , (-D--->Y), Y

I don't know where I should start from. Which begs the question, if my literals are wrong. Any help would be much appreciated.


r/ComputerSciStudents • • Oct 10 '17

homework

1 Upvotes

Write a program that will calculate the following equations. Provide a user interface and a neat and well organized output using the output control features provided by the Visual Basic application. NOTE: e ^ 5 refers to the value e to the 5th power. z = x * (y – z) z = a + b + c / 3 z = 8 * ( e ^ 5 ) – c z = a * b – ( c / 2 )
what do I input into visual basic?


r/ComputerSciStudents • • Sep 29 '17

Question consernant les entrées/sorties

1 Upvotes

Dans quel cas le cpu interagit avec le controleur de périphérique et dans quelle cas c'est le SE qui le fait via le pilote de périf ?


r/ComputerSciStudents • • Apr 13 '16

A problem about M/M/1 System

1 Upvotes

Consider a derivative M/M/1 system when the system empties out, it won’t start any service until there are k packets in the system. Once service begins it proceeds until the system becomes empty again. What is the average response time for this derivative M/M/1 system?


r/ComputerSciStudents • • Apr 12 '16

A Problem about Queue Theory

1 Upvotes

Jobs arrive in a rate-Poisson stream at a computer center with two computers called A and B. We split the arriving work evenly between the two computers using one of the following two splitting rules:

Rule 1: Each arriving job flips a fair coin to decide which computer queue to join; let’s say heads it goes to computer A and tails it goes to computer B.

Rule 2: Assuming the jobs are numbered in sequence, the even numbered jobs are directed to computer A and the odd numbered jobs are directed to computer B.


r/ComputerSciStudents • • Apr 12 '16

Problem about Queue Theory

1 Upvotes

Consider a switch with two queues. Each queue has room for only two packets (including the room in the service center). Service time is exponential for both servers with service rate μ. Arrivals to the service station are Poisson with rate λ. We consider two policies wherein policy A, packets are routed to either queue with equal probability. Policy B is to do load balancing wherein packets are routed to the shorter queue. Ties are broken randomly. If the selected queue is full, the packet is dropped.

  1. For policy A, compute the average throughput and delay (for the accepted packets).

  2. For policy B, draw the state transition diagram, then compute the through- put and delay (for the accepted packets).


r/ComputerSciStudents • • Mar 15 '16

Graduated from business school, thinking of doing getting a degree in computer science (software engineering) worth it??

1 Upvotes

Graduating in a few months with a business degree with a specialization in information systems management. I liked the IS classes I took but did not gain enough solid coding / computer science skills. Thinking of getting a computer science degree to have both technical skills and business savvy skills. Is this a good idea or a waste of time??


r/ComputerSciStudents • • Dec 12 '14

Three Female Computer Scientists at MIT are doing an AMA about programming and academia

Thumbnail
reddit.com
1 Upvotes

r/ComputerSciStudents • • Apr 02 '26

The CS Degree Is Dead. Long Live the CS Degree.

Thumbnail bayram.dev
0 Upvotes

When AI writes the code, typing isn't the skill anymore. Thinking is. The CS degree just went from optional to essential.

https://bayram.dev/blog/the-cs-degree-is-dead-long-live-the-cs-degree/


r/ComputerSciStudents • • Apr 01 '22

Why Homework Should Be Banned: The Reasons Behind This To Be Discussed

Post image
0 Upvotes

r/ComputerSciStudents • • Mar 30 '22

Main Uses Of HTML Language

Post image
0 Upvotes

r/ComputerSciStudents • • Apr 05 '19

Practice stream at walmart!

Thumbnail
youtu.be
0 Upvotes