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
+0 forum 0

I created a worked sql query: select CONVERT(date, C.tDate) as dt, count(O.Id) as cnt from [Calendar] C left outer join [Order] O on C.tDate = CONVERT(date, O.Dt) group by CONVERT(date, C.tDate) order by CONVERT(date, C.tDate) And I want to rewrite it use LINQ: var res = (from c in db.Calendars join o in db.Orders on c.tDate equals DbFunctions.TruncateTime(o.Dt.Value) into pp from pl in pp.DefaultIfEmpty() group c by DbFunctions.TruncateTime(pl.Dt.Value) into g orderby g.FirstOrDefault().tDate select new { date = g.FirstOrDefault().tDate, cnt = g.Count() }).ToList(); I get all rows from calendar in sql query, but only not null rows (right part) in LINQ …

Member Avatar
-1 forum 0

I have a Dell and I'm running 8.1. I can't download or upgrade anything. After a couple of days my email wont work and the internet slows down to a standstill. I usually restart my computer and it wont start. I keep hitting the reset button for about 15 minutes until it finally catches. A huge thank you for any help with my problems. Everything is backed up and was wondering--even though I don't want to should I upgrade to windows 10. Can I even still do this for free??? Here is my log from my computer. Thanks Again-Chris Logfile …

Member Avatar
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 1

Hello everyone. Despite my boot order set to Windows Secure Boot (USB last) and UEFI, when I turn my computer on it hangs at loading until I disconnect all USB external devices. When the computer tries to go to sleep mode, the screen goes black and I can hear the computer trying to go to sleep mode and coming back (the screen remains black) while the power light stays solid blue and I can not bring the screen back on. It is after I unplug all USB devices that the power light switches to blinking orange and then I can …

Member Avatar
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 3

using an array as a subroutine, then checking if its in ascending order then finding the median

Member Avatar
Member Avatar
+0 forum 1

I'm trying to write a function that will draw a right triangle that will ascend and then descend after the max height is reached. It is to be drawn using the asterisk symbol. I'm fairly new to recursion and that is the primary method I need to use to solve this problem. Any guidance or critique to my code would be appreciative. I can only edit the code that is marked TODO. ![Desktop_3-25-2019_12-16-42_PM-239.png](/attachments/large/4/b3aa4c2ae8f713c4d688654b049bc59b.png) // File: main.cpp #include <iostream> #include <fstream> #include <iomanip> using namespace std; int recursiveCount = 0; void triangle(const char drawChar, const int maxHeight, const int currentHeight); int …

Member Avatar
Member Avatar
+0 forum 2

Suppose I have a timekeeper, Ronald jack x628-C, I export time attendance data from the device, including two files: data.dat and device.dat because the old machine runs or crashes the device, I buy the device again If I restore the fingerprint from the old device, I added the remaining device.dat file, which was reported: "IP Error Input!" Restore the data to the device, and the data must be the backup BIN data passing the backup function before. Any of you know this error only helps with.

Member Avatar
Member Avatar
+1 forum 3

Hi please excuse my ignorance but can I download Spotify to an iPod nano and then use tracks in a vehicle via Bluetooth ?

Member Avatar
Member Avatar
+0 forum 2

Hello all, So last night I decided to add an older HDD into my new desktop to... well add more storage since games now-a-days are HUGE, and I was running out on my current 2 drives (main SSD with Windows 10, and an HDD). I didn't realize that the older HDD had Windows 7 installed on it (completely forgot that it was there...), which I installed into a SATA3 slot 0 (other 2 were on slots 2 and 3 respectively because the graphics card made it difficult to use slots 0 and 1). After booting it up, it started chkdsk …

Member Avatar
Member Avatar
+0 forum 7

Hello, I'm trying to create an environment variable by parsing a very ugly XML file returned by a curl command. Contained in the XML is a MAC address that I'm trying to use FINDSTR to find and then SET it as an environment variable for the local user. Here is a snippet of the XML that the curl command returns: <CameraStatusModel xmlns="***URL contains sensitive info, so removed it***"> <CameraStatusModel.ActiveCamera> <RectilinearCameraDeviceModel CompassHeading="0" IsConfigured="False" MACAddress="00:30:53:27:27:f4" Make="Basler" Name=""> <RectilinearCameraDeviceModel.CalibrationMask> <RectilinearCalibrationMaskModel Id="a1155f60-2900-442c-82a8-6c00dadbf243" Length="0" Width="0" ></RectilinearCalibrationMaskModel> I think the FINDSTR command I need to use is: `FINDSTR /r [a-z0-9]{2}:[a-z0-9]{2}:[a-z0-9]{2}:[a-z0-9]{2}:[a-z0-9]{2}:[a-z0-9]{2} c:\Users\<MyUsername>\Desktop\sandbox\output.txt`. I also know that I …

Member Avatar
Member Avatar
+0 forum 1

Yesterday I followed a thread trying to learn to lock file folders using the cacls in the command window. I thought I'd use the temp file folder as my target, thinking that it was the most innocent folder I had. I was able to lock it, but now I can't unlock it. Here is the code that I used to lock it: cacls %temp% /G %username%:R it asked me: Are you sure <Y/N> I replied Y, and it returned "processed dir: C:\DPCUME~1\HASLAM~4.AFT\LOCALS~1\Temp I could confirm that I was unable to save anything to the temp folder. So I then wanted …

Member Avatar
Member Avatar
+0 forum 1

Ok so I have been trying to do project euler problem 1 which finding the sum of all the multiples of 3 and 5 that are less than a thousand. i dont know why my program is not working. here's my program - [code=c++] #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int multiplier3 = 1; // multiplier of 3 int multiplier5 = 1;//multiplier of 5 int mult3 = 0; // multiple of 3 int ans3 = 0; // sum of multiples of 3 int mult5 = 0;//multiple of 5 int ans5 = 0;// sum …

Member Avatar
Member Avatar
+0 forum 2

In this examle in writer.c I am trying to generate symbols from a to z and then print them in uppercase in reader.c. **writer.c:** // C Program for Message Queue (Writer Process) #include <stdio.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> // structure for message queue struct mesg_buffer { long mesg_type; char mesg_text[100]; } message; int main() { key_t key; int msgid; // ftok to generate unique key key = ftok("progfile", 65); // msgget creates a message queue // and returns identifier msgid = msgget(key, 0666 | IPC_CREAT); message.mesg_type = 1; char c; for(c = 'a'; c <= 'z'; ++c) strcpy(message.mesg_text,c); …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am using Windows 10 and there is a lot of space in my system. But still its working too slow. Any app could take several minutes to open and even any website. also while I was try using any app it shows me message that, "App not responding". I dont know whether it is a hardware or software problem. I have licensed anti virus in my system so I ams ure its not because ofvirus as I hve scanned it thoroughly. Please help me guys what could be the problem and how to resolve the same?

Member Avatar
Member Avatar
-2 forum 18

Hello, this is my first post. I need help with this assignment here, dont know where to begin! maybe I should use strstr()? The output needs to be what is shown at the bottom. I cant use the string class, only c-style functions. Any hints would be welcome thank you! #include <iostream> #include <fstream> #include <cstring> using namespace std; //Prints the characters in the string str1 from beginIndex //and including endIndex void printSubString( const char* str1 , int beginIndex, int endIndex ) { //code needed } void printWordsInAString( const char* str1 ) { //code needed } int main() { char …

Member Avatar
Member Avatar
+0 forum 2

I am creating a program in python for a artificial intelligence for chinese checkers, but i cant even get the board to be portrayed! I am using this code: `Code` from tkinter import * root = Tk() board = PhotoImage(file="board.ppm") root.mainloop() I get the error as follows: Traceback (most recent call last): File "/Users/GAMEKNIGHT7/Documents/chineseCheckersAI(genius hour).py", line 3, in <module> board = PhotoImage(file="board.ppm") File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3539, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3495, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "board.ppm": no such file or directory What happened??`

Member Avatar
Member Avatar
+0 forum 1

Hello All, I have an issue with Windows 7: sometime the copy paste doesn't work and when this issue appear => the only way to remove it is by rebooting my pc. The copy paste doesn't work (wether using using [Ctrl]+[C], [Ctrl]+[V] or by context menu (right-click menu)) for all the applications (notepad, word, eclipse, outlook, skype). And also I'm unable to copy folders and files from one location to another ! I have tried everything but none of the below solutions solved my problem: 1. sfc /scannow 2. msconfig : Go to Startup, disable everything but windows services 3. …

Member Avatar
Member Avatar
+0 forum 1

i have 2 sperate projects which i am trying to run together as a shared project but i am failing hard……. Basically, first project does infix to postfix notation and the second projects does postfix evaluation. tried to run all that in 1 project but i keep getting all sorts of error and cannot figure it out, I am kind of lost don’t know what to do. any suggestions would be really appreciated!!!!!!!!! the first 3 files is infix to postfix project and the last one is posftix evaluation. this is the calculator.cpp #include "stdafx.h" #include "Calculator.h" #include <iostream> #include …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am building a calculator in c++ windows application form, i want the calculator to handle multiple operator precedence (for example, 2+4*5/3). but i am not sure how to write the following code on my windows form project. Any suggestions would appreciated . #include <iostream> #include <conio.h> using namespace std; int main() { int num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0; char op1, op2, op3, op4; int total1 = 0, total2 = 0, total3 = 0, total4 = 0; cout << "Enter five values with operator to calculate=>"; cin >> num1 …

Member Avatar
Member Avatar
+0 forum 6

My website was built with Angular JS 1 (not a wordpress site) . When i posted some website posts within same day. So ,When ever i checked my website on Google SERP (site:example.com), identified some of pages are crawled within 24hrs and some of pages within 1 week and some of pages with in 1 month and some of pages not cralwed . My Question is why this was happened?

Member Avatar
Member Avatar
+0 forum 1

So I was roaming around my computer, trying to merge my D and C drive since C drive is the main drive and D drive isn't, the D drive had 8 times as much space as the C drive so I wanted to merge them I went into disk settings and wiped the disk without knowing what it did Now I can't recover it because it doesn't show up in explorer or disk manager Please help

Member Avatar
Member Avatar
+0 forum 3

Does anyone know how to stop this process? It sits in Windows8_OS/Windows/System32/SleepStudy and builds multiple .ETL files in a ScreenOn sub folder The files can be deleted but the folders cannot.

Member Avatar
Member Avatar
+0 forum 6

Why Everytime After Few Days Google Hindi Input Setup Currupt Or Not Work In Hindi Fonts. I Facing This Issue Again & Again Same Day. Please Any Idea For Reinstall Google Input because I M Install again not install successfully. generate errors already installed.

Member Avatar
Member Avatar
+0 forum 2

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
Member Avatar
-2 forum 1

I need a function that will create and store usernames and passwords for different students. Their programme should ask the user for their name and age and a username should be created, consisted of their name and age eg. Jack16. They then can make up their own password which then will be stored in an external file using pickle maybe. The programme should then be able to check if the username and password is valid from the external list in a log in section. If they are valid they should be allowed in. I'm sort of stuck on this and …

Member Avatar
Member Avatar
+0 forum 3

Like when I watch any videos on my Thinkpad it flickers I got to be moving my mouse the whole time help!

Member Avatar
Member Avatar
+0 forum 1

I've been a Windows user right from the start and I've seen many problems that resulted in the infamous `checking for a solution to the problem`. I'm curious. Can anyone tell me if they have ever had an instance where Windows has actually found a solution?

Member Avatar
Member Avatar
+1 forum 9

So I have had this old windows vista desktop computer for a while and just recently when I turned it off the next morning it wouldnt turn back on until 4 days later. now 1 week later i turned it off again and i havent been able to turn it on for a month. wont make a noise there is only a green light on the back of the computer.

Member Avatar
Member Avatar
+0 forum 2

The End.