I am applying for my first jobs after completing my PhD. I have been asked
by a company to go and take a C programming test to see how my C skills are.
Apparantly this test is mostly finding errors in small snippets of code but
I was wondering if anyone could give me tips on what kind of things I should
be looking out for. The one area I dont feel confident in is how to declare
arrays of pointers and initialising multi-dimensional arrays.
Any advice would be very welcome.
Thanks
Allan
May 26 '06
40 2191
"Rod Pemberton" <do*********@bi tfoad.cmm> wrote in message
news:e5******** **@nntp.aioe.or g... "Allan M. Bruce" <al*****@TAKEAW AYdsl.pipex.com > wrote in message news:or******** ************@pi pex.net... "Joe Wright" <jo********@com cast.net> wrote in message news:HL******** *************** *******@comcast .com... > Allan M. Bruce wrote: >> I am applying for my first jobs after completing my PhD. > > A PhD in what? CS? > My PhD is in Computing Science - more specifically Artificial
Intelligence.
AI was a really popular topic in the early 90's. Despite learning some interesting stuff then, I haven't seen or heard of much since. Most of it was really primitive: attempting to model neurons, training weighted sum neural networks, etc. Since you have a PHD in AI, what are the things that you find most interesting?
Rod Pemberton
Alas you are talking about Neural Networks which is a small area of AI
which, as you said, was very popular about a decade ago. Our institution
researches all fields fo AI, with topics including Model Learning, Natural
Language Generation, Constraint Satisfaction, Planning, and my particular
field Qualitative Reasoning.
My PhD involved looking at Qualitative Reasoning (or 'thinking without
numbers') and attempting to bridge the gap between it and standard numerical
simulation. I also researched distributing all of the algorithms so that it
can be used on parallel machines or in web services (the latest buzz word in
academia).
My interests for a job would include either Neural Networks or Qualitative
Reasoning but I am also interested in many other fields, not necessarily
what I studied.
Allan
Rod Pemberton wrote: "Allan M. Bruce" <al*****@TAKEAW AYdsl.pipex.com > wrote in message news:or******** ************@pi pex.net... "Joe Wright" <jo********@com cast.net> wrote in message news:HL******** *************** *******@comcast .com... Allan M. Bruce wrote: I am applying for my first jobs after completing my PhD.
A PhD in what? CS? My PhD is in Computing Science - more specifically Artificial Intelligence.
AI was a really popular topic in the early 90's. Despite learning some interesting stuff then, I haven't seen or heard of much since. Most of it was really primitive: attempting to model neurons, training weighted sum neural networks, etc. Since you have a PHD in AI, what are the things that you find most interesting?
Rod Pemberton
As an ex-D.Phil [what Oxford calls a Ph.D. - we like to be different!]
student in Computational Linguistics, I /suspect/ that Allan has used A.I.
as a blanket term - as I used to do [it's the thing people have usually
heard about]?
What did surprise me is the Java - I would have bet a shed load of money on
him citing Prolog!
--
==============
Not a pedant
==============
>> AI was a really popular topic in the early 90's. Despite learning some interesting stuff then, I haven't seen or heard of much since. Most of it was really primitive: attempting to model neurons, training weighted sum neural networks, etc. Since you have a PHD in AI, what are the things that you find most interesting?
Rod Pemberton
As an ex-D.Phil [what Oxford calls a Ph.D. - we like to be different!] student in Computational Linguistics, I /suspect/ that Allan has used A.I. as a blanket term - as I used to do [it's the thing people have usually heard about]?
What did surprise me is the Java - I would have bet a shed load of money on him citing Prolog!
Indeed, Prolog is heavily used or certainly was, and Lisp. But as with
everything, the trend at the moment is Java. I am glad though as my little
prolog experience was not good!
Allan
"Rod Pemberton" <do*********@bi tfoad.cmm> writes: "Allan M. Bruce" <al*****@TAKEAW AYdsl.pipex.com > wrote in message news:or******** ************@pi pex.net...
[...] My PhD is in Computing Science - more specifically Artificial Intelligence.
AI was a really popular topic in the early 90's. Despite learning some interesting stuff then, I haven't seen or heard of much since. Most of it was really primitive: attempting to model neurons, training weighted sum neural networks, etc. Since you have a PHD in AI, what are the things that you find most interesting?
There's an entire hierarchy of comp.ai.* newsgroups where this kind of
thing is topical.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
"Keith Thompson" <ks***@mib.or g> wrote in message
news:ln******** ****@nuthaus.mi b.org... "Rod Pemberton" <do*********@bi tfoad.cmm> writes: "Allan M. Bruce" <al*****@TAKEAW AYdsl.pipex.com > wrote in message news:or******** ************@pi pex.net... [...] My PhD is in Computing Science - more specifically Artificial Intelligence.
AI was a really popular topic in the early 90's. Despite learning some interesting stuff then, I haven't seen or heard of much since. Most of
it was really primitive: attempting to model neurons, training weighted sum neural networks, etc. Since you have a PHD in AI, what are the things
that you find most interesting?
There's an entire hierarchy of comp.ai.* newsgroups where this kind of thing is topical.
As always, Keith stating the obvious and known in an ignorant and useless
manner. If I wanted a response to my question from the generic AI populace,
I would've asked there. But, I didn't. I wanted a response from someone
who was extremely interested in AI (i.e., PHD) and upto date (i.e., new
PHD). In other words, the individual who posted here.
Rod Pemberton
Allan M. Bruce posted: I am applying for my first jobs after completing my PhD. I have been asked by a company to go and take a C programming test to see how my C skills are. Apparantly this test is mostly finding errors in small snippets of code but I was wondering if anyone could give me tips on what kind of things I should be looking out for. The one area I dont feel confident in is how to declare arrays of pointers and initialising multi-dimensional arrays.
Any advice would be very welcome.
I would approach it with this attitude: The person who wrote the exam is
an absolute idiot, and it's my duty to show just how much of an idiot he
is.
Why?
Because most programming language exams are erroneous. You might even see
a question which has code that attemps to set all of an array's elements
to zero:
int *array[50];
memset( &array, 0, sizeof( int[50] ) );
You should give a very arrogant answer such as:
The programmer errorneously overlooked the fact that not all zero values
need be represented by all bits zero in memory; in particular: a null
pointer value, 0 for a float or double. Therefore, the above code
exhibits Undefined Behaviour.
-Tomás
Tomás said: I would approach it with this attitude: The person who wrote the exam is an absolute idiot, and it's my duty to show just how much of an idiot he is.
Why?
Because most programming language exams are erroneous. You might even see a question which has code that attemps to set all of an array's elements to zero:
int *array[50];
memset( &array, 0, sizeof( int[50] ) );
You should give a very arrogant answer such as:
The programmer errorneously overlooked the fact that not all zero values need be represented by all bits zero in memory; in particular: a null pointer value, 0 for a float or double. Therefore, the above code exhibits Undefined Behaviour.
Not to mention the fact that array has type int *[50], so &array has type
(int *[50])*. The appropriate sizeof would be sizeof(int *[50]) or sizeof
array, not sizeof(int[50]). In my opinion this is a far graver error.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Tomás wrote: Allan M. Bruce posted:
I am applying for my first jobs after completing my PhD. I have been asked by a company to go and take a C programming test to see how my C skills are. Apparantly this test is mostly finding errors in small snippets of code but I was wondering if anyone could give me tips on what kind of things I should be looking out for. The one area I dont feel confident in is how to declare arrays of pointers and initialising multi-dimensional arrays.
Any advice would be very welcome.
I would approach it with this attitude: The person who wrote the exam is an absolute idiot, and it's my duty to show just how much of an idiot he is.
Why?
Because most programming language exams are erroneous. You might even see a question which has code that attemps to set all of an array's elements to zero:
int *array[50];
memset( &array, 0, sizeof( int[50] ) );
You should give a very arrogant answer such as:
The programmer errorneously overlooked the fact that not all zero values need be represented by all bits zero in memory; in particular: a null pointer value, 0 for a float or double. Therefore, the above code exhibits Undefined Behaviour.
After adding the missing *, I don't think there is undefined behaviour
on any system just yet. The code sets all elements to all bits zero. If
it's an invalid pointer value, there's not a problem until the pointers
are actually read. (Sure, the code you've shown is then a very bad
idea, but don't claim UB when there isn't.) If it's a valid null
pointer, the code is unnecessarily nonportable, but correct for that
implementation. And if all bits zero is a valid pointer value, but not
a null pointer, and that special pointer value is needed, this may even
be a good way of getting it.
> The appropriate sizeof would be sizeof(int *[50]) or sizeof array, not sizeof(int[50]). In my opinion this is a far graver error.
One of the pitfalls of not checking over one's code.
Thankfully though, there's a distinction between the sample code I post to
newsgroups, and the real code I actually compile.
-Tomás
Richard Heathfield wrote: Tomás said:
I would approach it with this attitude: The person who wrote the exam is an absolute idiot, and it's my duty to show just how much of an idiot he is.
Why?
Because most programming language exams are erroneous. You might even see a question which has code that attemps to set all of an array's elements to zero:
int *array[50];
memset( &array, 0, sizeof( int[50] ) );
You should give a very arrogant answer such as:
The programmer errorneously overlooked the fact that not all zero values need be represented by all bits zero in memory; in particular: a null pointer value, 0 for a float or double. Therefore, the above code exhibits Undefined Behaviour.
Not to mention the fact that array has type int *[50], so &array has type (int *[50])*. ...
You mean int *(*)[50]. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: beliavsky |
last post by:
I can define a function that transforms either a scalar or each element in
a list as follows:
def twice(x):
try:
return map(twice,x)
except:
return 2*x
print twice(3) # 6
|
by: Stephen Engle |
last post by:
I am trying to allow for user account to take ownership of an Active
Directory object. I have assigned the Modify Owner permission to the user
on the AD object - a distribution list in this case. Using Active Directory
Users and Computers, the user can take ownership of the object. But I have
not been able to get the program I am working on to do so. Whenever I try
to write the Security Descriptor back to the object, I get the...
|
by: paul |
last post by:
I'm having a weird problem now on a machine when I'm
working on a project from a web server and when I rebuild
that solution the coding changes do not take affect. Any
changes to the .ASPX file work fine it's the changes to
the .cs files that are not having any affect. I can go to
another machine and refresh the project and rebuild and
the changes I did on the other machine then take affect.
it's like the compiled code is not being...
|
by: D. Shane Fowlkes |
last post by:
I'm a traditional ASP developer and am experimenting with asp.net. I
installed .NET Framework 1.1 and make a quick and dirty test page called
random.aspx . Can anyone tell me why this page doesn't write the value of
"X" to the page AND why I can view the <% %> source code in the browser? It
makes me think that my IIS doesn't recognize .aspx files.
Thanks
<% @Page Language = "VB" Debug = "True" Explicit = "True" %>
|
by: Brian Kitt |
last post by:
I have a process where I do some minimal reformating on a TAB delimited
document to prepare for DTS load. This process has been running fine, but I
recently made a change. I have a Full Text index on one column, and
punctuation in the column was causing some problems down the line. This
column is used only for full text indexing, and otherwise ignored. I decided
to use the following regular expression to remove all punctuation (actually...
| |
by: greg weber |
last post by:
I have a vb.net application that uses web services.
everything was working great until i installed at a client that uses a linux
proxy server running squid
each user is required to authenicate when the access the net. Using IE they
are prompted for username and password and go right out.
When i specify the credentials and try to connect the application it waits
for 100 seconds, ironically that is the timeout setting.
When it comes...
|
by: Roberto Hernández |
last post by:
I try to use the Windows Image Acquisition (WIA) with a sample in vb.net but
it takes only back photos and also at low resolution. How can I put ther
resolution at 640x480?
I have a Labtec webcam plus that works fine with other software.
I downloaded two samples from the internte and both of them do the same
problem
The samples are:
http://www.vbforums.com/showthread.php?t=378126
http://www.vbforums.com/attachment.php?attachmentid=44367...
|
by: =?iso-8859-1?q?Erik_Wikstr=F6m?= |
last post by:
I'd like to create a partial specialization of a member-method of a
parameterized class which takes a parameterized argument, but I'm not
sure if it's possible or, if possible, how. The following code
demonstrates what I'd like to to:
#include <iostream>
template<class T>
struct BarA
{
|
by: James Kanze |
last post by:
On Nov 18, 5:50 pm, Pete Becker <p...@versatilecoding.comwrote:
Has this changed in the latest draft. According to my copy of
the standard (version 1998---out of date, I know), "The
operand shall be an lvalue or a
qualified-id". His expression was &Test("test2"); IMHO, the
compiler generated a warning because it was being laxist.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |