Jump to content

Qubit

Members
  • Posts

    572
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Qubit

  1. all time favorite tv series... Skins
  2. I changed the code recently to increment rather than decrement, The statement was if r == 1... It just looks better and ill probably change it. Probably would look alot cleaner in C, but aint nobody got time to be doing all this extra work to prove that they are wrong. The assignment was not to code anything. I just threw this code together just to prove that it could be done in O(n) space and time complexity :P
  3. I find most interest n the development side of osbot. I quite often share problems I come across, if you don't like it, go eat a dick. Sincerely Yours, Qubit https://gist.github.com/jaavant/5ae6f6296ce720bd43591f678fa8762e
  4. I'm concerned with 1c. I developed pseducode for this algorithm and computed it in O(n) time and space complexity. The TA otherwise told me I am wrong and the complexities are O(n^2) . All in all because they marked it wrong, I received an 89 in course rather than a 90. My school only gives As and Bs... So instead of a 4.0 I got 3.0 for the class. So tell me am I wrong.?
  5. Bruh what you smoking fam? If you click the link of the first google result, it provides a wrong answer to the time complexity and no space complexity answer. Also, what else are you going on about over there? Sounds like you googled algorithms and tried making a horrible comeback response to me after I shat all over your initial reply. This boy out here smoking penises. Use the word complexity and some how I am showing off with my buzz words.
  6. If you took the time to read the two sentences this post is comprised of, you would understand my problem. 1. Im not asking for a shortcut, im asking for the time and space complexities. I have already written a algorithm that solves the problem in 2*n => O(n) complexity. 2. Algorithms and their complexities are important to know and very much applied. I know for a fact anyone with a brain and especially people who develop the bot client would have some knowledge in the area. 3. The notation let's you know the upper bound of an algorithm to know the worst case of the algorithm, which is extremely important to know and many cases. 4. I literally say this is for a project.. => school " CS class"
  7. Yea its part of the project... I had to make another one that was O(n) that was simple.
  8. Ehh.. there's a couple scriptersand I would expect the devs too
  9. Need to know this for a project where we find if a word is a permutation of a another word in a shitty way.. from eye balling it the time complexity to create it is O(n) and the space complexity would be O(n!) too right? My program just creates the list via itertools.permutations of the first string, then uses a for loop to go through it and see if it is there... https://docs.python.org/2/library/itertools.html#itertools.permutations
  10. A team from WPI playing Over watch is making it quite for in the this years Tespa Collegiate League. Unfortunately I only play csgo so I cant be on this team, but kudos to them. Our school , WPI only has 5700 students, compared to these large schools, it's astonishing that we are beating these huge state schools. Last night WPI played a game for 7000$, winner is able to continue in the tournament. WPI played VCU, whom which holds the number one seed. Straight into the details, WPI lost the first 2 games of a BO5. With little to no chance to winning they some turn it around and do a reverse sweep, winning the game 3-2. They continue their fight to finals this Sunday, where they win, will compete in the Tespa Collegiate LAN, with a shot to win more money. The match was hella long, but really good. If you want to check it out heres the link https://www.twitch.tv/teamtespa/v/101696662 start at [1:46:46]
  11. https://gyazo.com/a546deaa10555549fcd190d76df19eda How do i solve..
  12. http://imgur.com/a/w00fh Based on your contour plot please answer the following question: what is the minimum possible square area (and its width in miles) that gives us the average electric output of the array greater than or equal to the current USA electric consumption of 5´1011 W=500 Gigawatts at the solar panel efficiency of 15%? Matlab Code: clear all; close all; %-------------------------------------------------------- % Vector of available area widths (a 1D array of numbers) Wmiles = [1:1:150]; % width of the square area in miles (vector or 1D array) Wmeters = Wmiles*1609; % width of the square area in meters (vector or 1D array) A = Wmeters.*Wmeters; % A.* area in m^2 (vector or 1D array); note element-by-element % vector multiplication! %-------------------------------------------------------- % Vector of available array efficiencies (a 1D array of numbers) E = [1:1:20]; % efficiency percentage (vector or 1D array) %-------------------------------------------------------- % Matrix of all available total output powers of the array (a 2D array of numbers) p = 270.9; % average daily solar radiation in W per m^2 (scalar) for i = 1:length(A) % index i corresponds to different areas A for j = 1:length(E) % index j corresponds to different efficiencies E P(i,j) = p*A(i)*E(j)*0.01; %total average daily power (2D matrix) end end %-------------------------------------------------------- % "Plot" the matrix - a contour plot of all available total output powers v = [2 10 50 100 300 500 1000]; % create contour plot levels in GWatts C = contourf(P*1e-9, v); % create contour plot of output powers in GWatts colormap(summer); clabel(C, 'FontSize', 11, 'Color', 'r'); % be fancy (do not have to) grid on; xlabel('Solar panel efficiency percentage, E'); ylabel('Width of the square area in miles, W');
  13. Qubit

    Farewell.

    Pce, it was really fun
  14. Earliest I can remmeber.. At a rented house in martha's vineyard. Botted dungeoneering 1-80.
  15. Don't need your judgmental k. Get that shit outta here
  16. Run Script at X time everyday for Y amount of time, for what ever days are chosen.
  17. dope, should add scheduling system, and maybe a cli for the application. That'd be nice
×
×
  • Create New...